Revert "Merge branch 'MDL-48534_m27' of https://github.com/markn86/moodle into MOODLE_27_STABLE"
This reverts commit8bdafc9460, reversing changes made todc94f80ec7.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user