MDL-62939 user: Fix field type of the user profile description
As this is an editor element field, the it is supposed to be PARAM_RAW. Otherwise it cleans-up certain non-HTML syntax such as Markdown blockquote characters.
This commit is contained in:
+1
-1
@@ -339,7 +339,7 @@ function useredit_shared_definition(&$mform, $editoroptions, $filemanageroptions
|
||||
}
|
||||
|
||||
$mform->addElement('editor', 'description_editor', get_string('userdescription'), null, $editoroptions);
|
||||
$mform->setType('description_editor', PARAM_CLEANHTML);
|
||||
$mform->setType('description_editor', PARAM_RAW);
|
||||
$mform->addHelpButton('description_editor', 'userdescription');
|
||||
|
||||
if (empty($USER->newadminuser)) {
|
||||
|
||||
Reference in New Issue
Block a user