MDL-11553, bulk user actions selection buttons do not work as expected

This commit is contained in:
toyomoyo 2007-10-03 08:26:13 +00:00
parent 2f5b642ef4
commit af5c201302
3 changed files with 4 additions and 4 deletions

View File

@ -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)) {

View File

@ -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';

View File

@ -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>