mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-42167-workshop-update-record' of git://github.com/mudrd8mz/moodle
This commit is contained in:
commit
b1bdb61e90
@ -191,7 +191,10 @@ if (is_null($assessment->grade) and !$assessmenteditable) {
|
||||
if (isset($data->weight) and $cansetassessmentweight) {
|
||||
$coredata->weight = $data->weight;
|
||||
}
|
||||
$DB->update_record('workshop_assessments', $coredata);
|
||||
// Update the assessment data if there is something other than just the 'id'.
|
||||
if (count((array)$coredata) > 1 ) {
|
||||
$DB->update_record('workshop_assessments', $coredata);
|
||||
}
|
||||
|
||||
// And finally redirect the user's browser.
|
||||
if (!is_null($rawgrade) and isset($data->saveandclose)) {
|
||||
|
@ -126,7 +126,10 @@ if ($mform->is_cancelled()) {
|
||||
// Remember the last one who edited the reference assessment.
|
||||
$coredata->reviewerid = $USER->id;
|
||||
}
|
||||
$DB->update_record('workshop_assessments', $coredata);
|
||||
// Update the assessment data if there is something other than just the 'id'.
|
||||
if (count((array)$coredata) > 1 ) {
|
||||
$DB->update_record('workshop_assessments', $coredata);
|
||||
}
|
||||
|
||||
if (!is_null($rawgrade) and isset($data->saveandclose)) {
|
||||
if ($canmanage) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user