diff --git a/lib/formslib.php b/lib/formslib.php index 759f546d057..d0743c3f56e 100644 --- a/lib/formslib.php +++ b/lib/formslib.php @@ -1145,6 +1145,10 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless { } } + if (is_array($this->_constantValues)) { + $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $this->_constantValues); + } + if ($addslashes){ return $this->_recursiveFilter('addslashes', $unfiltered); } else {