mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 08:30:04 +01:00
MDL-48534 mod_assign: display correct workflow state and marker
This commit is contained in:
parent
8f06fffbe1
commit
acb525551f
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user