commit d2efd94931e7c3e3db9132eddad909d69780c049 Author: Kirill Astashov Date: Thu Nov 15 12:01:58 2012 +1030 FLO-235: Fix 'Page context not set' debug output when editing outcomes diff --git a/grade/edit/outcome/edit.php b/grade/edit/outcome/edit.php index 596fd68..899eb81 100644 --- a/grade/edit/outcome/edit.php +++ b/grade/edit/outcome/edit.php @@ -115,7 +115,11 @@ if (!empty($outcome_rec->id)) { } else { $outcome_rec = file_prepare_standard_editor($outcome_rec, 'description', $editoroptions, $systemcontext, 'grade', 'outcome', null); } - +if (isset($context)) { + $PAGE->set_context($context); +} else { + $PAGE->set_context($systemcontext); +} $mform = new edit_outcome_form(null, compact('gpr', 'editoroptions')); $mform->set_data($outcome_rec);