]> git.mjollnir.org Git - moodle.git/commitdiff
Preserve multiselect option through ajax calls.
authortjhunt <tjhunt>
Tue, 6 Jan 2009 06:14:37 +0000 (06:14 +0000)
committertjhunt <tjhunt>
Tue, 6 Jan 2009 06:14:37 +0000 (06:14 +0000)
user/selector/lib.php

index 50e931874ca56754d66bebe55349bb0d3754822f..08442493a08b97b151e7ef9df793ccb4f0e6c238 100644 (file)
@@ -95,6 +95,9 @@ abstract class user_selector_base {
         if (isset($options['exclude']) && is_array($options['exclude'])) {
             $this->exclude = $options['exclude'];
         }
+        if (isset($options['multiselect'])) {
+            $this->multiselect = $options['multiselect'];
+        }
 
         // Read the user prefs / optional_params that we use.
         $this->preserveselected = $this->initialise_option('userselector_preserveselected', $this->preserveselected);
@@ -321,7 +324,8 @@ abstract class user_selector_base {
             'class' => get_class($this),
             'name' => $this->name,
             'exclude' => $this->exclude,
-            'extrafields' => $this->extrafields
+            'extrafields' => $this->extrafields,
+            'multiselect' => $this->multiselect
         );
     }