From 8d89b40183470db817d4d5d0e66356fc3434c36e Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 6 Jan 2009 06:14:37 +0000 Subject: [PATCH] Preserve multiselect option through ajax calls. --- user/selector/lib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5