From 8367651ee4a0867c2103284bb01f41f5749544cf Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Mon, 12 Dec 2011 15:52:13 +0800 Subject: [PATCH] MDL-29239 fixed edit course setting for moodle/course:changesummary permission is set to prevent. --- lib/form/editor.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/form/editor.php b/lib/form/editor.php index 3832b5000c2..1f475b37d34 100644 --- a/lib/form/editor.php +++ b/lib/form/editor.php @@ -58,7 +58,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element { } function getValue() { - return $this->getAttribute('value'); + return $this->_values; } function getMaxbytes() { @@ -276,4 +276,13 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element { return $str; } + /** + * What to display when element is frozen. + * + * @return empty string + */ + function getFrozenHtml() { + + return ''; + } }