MDL-36257 forms Make selectyesno output hidden substitution on freezing
authorRuslan Kabalin <r.kabalin@lancaster.ac.uk>
Mon, 29 Oct 2012 12:37:22 +0000 (12:37 +0000)
committerRuslan Kabalin <r.kabalin@lancaster.ac.uk>
Mon, 29 Oct 2012 15:00:40 +0000 (15:00 +0000)
lib/form/selectyesno.php

index c5eb181..d88a276 100644 (file)
@@ -51,7 +51,7 @@ class MoodleQuickForm_selectyesno extends MoodleQuickForm_select{
     {
         HTML_QuickForm_element::HTML_QuickForm_element($elementName, $elementLabel, $attributes, null);
         $this->_type = 'selectyesno';
-
+        $this->_persistantFreeze = true;
     }
 
     /**