MDL-23872 Forms Library : Updated MoodleQuickForm to honour setConstant(), prevents...
authorDaren Chandisingh <daren.chandisingh@luns.net.uk>
Wed, 2 Feb 2011 10:33:16 +0000 (10:33 +0000)
committerAparup Banerjee <aparup@moodle.com>
Wed, 10 Aug 2011 07:17:53 +0000 (15:17 +0800)
lib/formslib.php

index 1787b0f..144ceb9 100644 (file)
@@ -1576,6 +1576,10 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
             }
         }
 
+        if (is_array($this->_constantValues)) {
+            $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $this->_constantValues);
+        }
+
         return $unfiltered;
     }
     /**