Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fdc622
)
MDL-23872 Forms Library : Updated MoodleQuickForm to honour setConstant(), prevents...
author
Daren Chandisingh
<daren.chandisingh@luns.net.uk>
Wed, 2 Feb 2011 10:33:16 +0000
(10:33 +0000)
committer
Aparup Banerjee
<aparup@moodle.com>
Wed, 10 Aug 2011 07:17:53 +0000
(15:17 +0800)
lib/formslib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/formslib.php
b/lib/formslib.php
index
1787b0f
..
144ceb9
100644
(file)
--- a/
lib/formslib.php
+++ b/
lib/formslib.php
@@
-1576,6
+1576,10
@@
class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
}
}
+ if (is_array($this->_constantValues)) {
+ $unfiltered = HTML_QuickForm::arrayMerge($unfiltered, $this->_constantValues);
+ }
+
return $unfiltered;
}
/**