Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-33537_22' of git://github.com/dmonllao/moodle into …

…MOODLE_22_STABLE
  • Loading branch information...
commit a1355c48761818b8b1d0cf77a39d519894689c82 2 parents 368fb63 + 2322b97
@danpoltawski danpoltawski authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  grade/grading/form/rubric/lib.php
View
3  grade/grading/form/rubric/lib.php
@@ -556,7 +556,8 @@ public function get_or_create_instance($instanceid, $raterid, $itemid) {
return $this->get_instance($instance);
}
if ($itemid && $raterid) {
- if ($rs = $DB->get_records('grading_instances', array('raterid' => $raterid, 'itemid' => $itemid), 'timemodified DESC', '*', 0, 1)) {
+ $params = array('definitionid' => $this->definition->id, 'raterid' => $raterid, 'itemid' => $itemid);
+ if ($rs = $DB->get_records('grading_instances', $params, 'timemodified DESC', '*', 0, 1)) {
$record = reset($rs);
$currentinstance = $this->get_current_instance($raterid, $itemid);
if ($record->status == gradingform_rubric_instance::INSTANCE_STATUS_INCOMPLETE &&
Please sign in to comment.
Something went wrong with that request. Please try again.