diff --git a/lib/formslib.php b/lib/formslib.php index 16d934aaf79..2fb97543ffa 100644 --- a/lib/formslib.php +++ b/lib/formslib.php @@ -1561,6 +1561,10 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless { } } + if (is_array($this->_constantValues)) { + $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $this->_constantValues); + } + return $unfiltered; } /**