MDL-27896 editor - parent context will be respected by editor in case context is not created.
This commit is contained in:
@@ -82,6 +82,8 @@ if (!empty($course)) {
|
||||
$course = file_prepare_standard_editor($course, 'summary', $editoroptions, $coursecontext, 'course', 'summary', 0);
|
||||
|
||||
} else {
|
||||
//editor should respect category context if course context is not set.
|
||||
$editoroptions['context'] = $catcontext;
|
||||
$course = file_prepare_standard_editor($course, 'summary', $editoroptions, null, 'course', 'summary', null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user