From 4d48a651592ab18f63f78120fc73bec5ac6a0947 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 5 Sep 2012 12:44:18 +1200 Subject: [PATCH] MDL-35255 mod_assign plagiarism api shift update_status call to after header has been printed. --- mod/assign/locallib.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index a933ab523eb..e1e5104a043 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -1762,6 +1762,11 @@ class assign { $gradingoptionsdata->filter = $filter; $gradingoptionsform->set_data($gradingoptionsdata); + $actionformtext = $this->output->render($gradingactions); + $o .= $this->output->render(new assign_header($this->get_instance(), + $this->get_context(), false, $this->get_course_module()->id, get_string('grading', 'assign'), $actionformtext)); + $o .= groups_print_activity_menu($this->get_course_module(), $CFG->wwwroot . '/mod/assign/view.php?id=' . $this->get_course_module()->id.'&action=grading', true); + // plagiarism update status apearring in the grading book if (!empty($CFG->enableplagiarism)) { /** Include plagiarismlib.php */ @@ -1769,12 +1774,6 @@ class assign { $o .= plagiarism_update_status($this->get_course(), $this->get_course_module()); } - $actionformtext = $this->output->render($gradingactions); - $o .= $this->output->render(new assign_header($this->get_instance(), - $this->get_context(), false, $this->get_course_module()->id, get_string('grading', 'assign'), $actionformtext)); - $o .= groups_print_activity_menu($this->get_course_module(), $CFG->wwwroot . '/mod/assign/view.php?id=' . $this->get_course_module()->id.'&action=grading', true); - - // load and print the table of submissions if ($showquickgrading && $quickgrading) { $table = $this->output->render(new assign_grading_table($this, $perpage, $filter, 0, true)); -- 2.43.0