From 1928113b3f44e6f20844c4418beee1b7a06c9c31 Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Mon, 12 Dec 2011 15:46:07 +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 3832b5000c236..bd21972b7cf88 100644 --- a/lib/form/editor.php +++ b/lib/form/editor.php @@ -58,7 +58,7 @@ function setValue($values) { } function getValue() { - return $this->getAttribute('value'); + return $this->_values; } function getMaxbytes() { @@ -276,4 +276,13 @@ function toHtml() { return $str; } + /** + * What to display when element is frozen. + * + * @return empty string + */ + function getFrozenHtml() { + + return ''; + } }