From c588fdac36cd8be15e6ae05e9c025fbedf5e11ce Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 16 Dec 2014 23:52:22 -0800 Subject: [PATCH] MDL-48534 mod_assign: display correct workflow state and marker --- mod/assign/locallib.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 0c022876362..91e71852ff3 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -2983,16 +2983,18 @@ 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);