MDL-42617 Add support for frozen fields in searchableselector form elements
authorJuan Leyva <juanleyvadelgado@gmail.com>
Thu, 31 Oct 2013 10:18:24 +0000 (11:18 +0100)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Thu, 31 Oct 2013 10:18:24 +0000 (11:18 +0100)
lib/form/searchableselector.php

index dcad9dc..681549b 100644 (file)
@@ -64,7 +64,7 @@ class MoodleQuickForm_searchableselector extends MoodleQuickForm_select{
      */
     function toHtml(){
         global $OUTPUT;
-        if ($this->_hiddenLabel){
+        if ($this->_hiddenLabel || $this->_flagFrozen) {
             return parent::toHtml();
         } else {
             // Javascript for the search/selection fields