Details
Description
With debug developer enabled... in the group/members.php page (where you add and remove users to/from a group)... I get one JS script that disables the add and remove buttons.
The exact error is:
invalid flag after regular expression (line 136)
onfocus(focus )
and looking at the underlying code... I see something like:
...
...
132<div id="content-i1" class="i1"><div id="content-i2" class="i2"><div id="content-i3" class="i3 clearfix"><script type="text/javascript">
133//<![CDATA[
134var userSummaries = Array(
135<br />
136<b>Notice</b>: Undefined variable: nonmembers in <b>/Users/stronk7/cvs_moodle/moodle_19_stable/group/members.php</b> on line <b>162</b><br />
137<br />
138<b>Notice</b>: Undefined variable: nonmembers in <b>/Users/stronk7/cvs_moodle/moodle_19_stable/group/members.php</b> on line <b>164</b><br />
139<br />
140<b>Warning</b>: Invalid argument supplied for foreach() in <b>/Users/stronk7/cvs_moodle/moodle_19_stable/group/members.php</b> on line <b>164</b><br />
141);
142
143function updateUserSummary() {
...
...
See that those PHP notices are the problem, breaking JS. With debug off everything looks ok.
Assigning to Sam Marshll as he made some recent changes in that interface... TIA !
Ciao ![]()
Attachments
Issue Links
| This issue duplicates: | ||||
| MDL-15809 | In add/remove users in group, not is displayed the groups of selected user in potential members list |
|
|
|
(I changed the summary to reflect the impact on users.)
You are right, it looks like I broke this. (Hrmmm... why didn't I notice at the time...) Sorry.
Here is a patch that fixes it. I've done brief testing on this, it appeared to work. Please approve & I'll check it in.