From 0e045c4c2033c1b0fe702a766ff49a2eae87a0c1 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 23 Dec 2014 10:46:23 +0000 Subject: [PATCH] Revert "Merge branch 'MDL-48534_m27' of https://github.com/markn86/moodle into MOODLE_27_STABLE" This reverts commit 8bdafc9460334abe1398f1cf1e364a2680c7a4da, reversing changes made to dc94f80ec7ef67c571c9a597e1ad123d5869e3d2. --- mod/assign/locallib.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index ac9d5c6e6a7..57aac5550ef 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -2980,18 +2980,16 @@ class assign { if ($grade->grade !== null && $grade->grade >= 0) { $data->grade = format_float($grade->grade, 2); } + if (!empty($flags->workflowstate)) { + $data->workflowstate = $flags->workflowstate; + } + if (!empty($flags->allocatedmarker)) { + $data->allocatedmarker = $flags->allocatedmarker; + } } else { $data = new stdClass(); $data->grade = ''; } - - if (!empty($flags->workflowstate)) { - $data->workflowstate = $flags->workflowstate; - } - if (!empty($flags->allocatedmarker)) { - $data->allocatedmarker = $flags->allocatedmarker; - } - // Warning if required. $allsubmissions = $this->get_all_submissions($userid); -- 2.11.4.GIT