mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-11553, bulk user actions selection buttons do not work as expected
This commit is contained in:
parent
2f5b642ef4
commit
af5c201302
@ -97,8 +97,8 @@ class user_bulk_form extends moodleform {
|
||||
$SESSION->bulk_susers = array_diff($SESSION->bulk_susers, $SESSION->bulk_ausers);
|
||||
}
|
||||
} else if(@$data->removesel) {
|
||||
if(!empty($data->ausers)) {
|
||||
$SESSION->bulk_susers = array_diff($SESSION->bulk_susers, array_values($data->ausers));
|
||||
if(!empty($data->susers)) {
|
||||
$SESSION->bulk_susers = array_diff($SESSION->bulk_susers, array_values($data->susers));
|
||||
}
|
||||
} else if(@$data->deletesel) {
|
||||
if(!empty($data->susers)) {
|
||||
|
@ -3,7 +3,7 @@ $string['usersinlist'] = 'Users in list';
|
||||
$string['addall'] = 'Add all available users';
|
||||
$string['addsel'] = 'Add selected available users';
|
||||
$string['removeall'] = 'Remove all available users';
|
||||
$string['removesel'] = 'Remove selected available users';
|
||||
$string['removesel'] = 'Remove selected users';
|
||||
$string['deleteall'] = 'Clear all users';
|
||||
$string['deletesel'] = 'Clear selected users';
|
||||
$string['available'] = 'Available';
|
||||
|
@ -3,7 +3,7 @@
|
||||
<ul>
|
||||
<li>Add selected available users - adds selected users from the Available list (on the left) to the Selected list (on the right).</li>
|
||||
<li>Add all available users - adds all users from the Available list (on the left) to the Selected list (on the right).</li>
|
||||
<li>Remove selected available users - removes selected users from the Available list (on the left) from the Selected list (on the right).</li>
|
||||
<li>Remove selected users - removes selected users from the Selected list (on the right).</li>
|
||||
<li>Remove all available users - removes all users from the Available list (on the left) from the Selected list (on the right).</li>
|
||||
<li>Clear selected users - removes selected users from the Selected list (on the right).</li>
|
||||
<li>Clear all users - removes all users from the Selected list (on the right).</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user