From: tjhunt <tjhunt>
Date: Tue, 6 Jan 2009 06:14:37 +0000 (+0000)
Subject: Preserve multiselect option through ajax calls.
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8d89b40183470db817d4d5d0e66356fc3434c36e;p=moodle.git

Preserve multiselect option through ajax calls.
---

diff --git a/user/selector/lib.php b/user/selector/lib.php
index 50e931874c..08442493a0 100644
--- a/user/selector/lib.php
+++ b/user/selector/lib.php
@@ -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
         );
     }