Skip to content

Commit

Permalink
Merge pull request #27 from gbarat87/fix-score-display
Browse files Browse the repository at this point in the history
Many thanks for the update. Merged.
  • Loading branch information
marcusgreen authored Jun 24, 2024
2 parents 4c22218 + ab44375 commit efc7ad0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions classes/rubric_ranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

namespace report_advancedgrading;

defined('MOODLE_INTERNAL') || die();

require_once($CFG->dirroot . '/grade/grading/form/lib.php');
/**
* Logic to process data for assignments using the rubric range grading method
*
Expand Down Expand Up @@ -96,9 +99,10 @@ public function get_data(\assign $assign, \cm_info $cm): array {
JOIN {user} rubm ON rubm.id = ag.grader
JOIN {gradingform_rubric_ranges_f} grf ON (grf.instanceid = gin.id)
AND (grf.criterionid = criteria.id) AND (grf.levelid = level.id)
WHERE cm.id = :assignid AND stu.deleted = 0
WHERE cm.id = :assignid AND gin.status = :instancestatus AND stu.deleted = 0
ORDER BY lastname ASC, firstname ASC, userid ASC, criteria.sortorder ASC";
$data = $DB->get_records_sql($sql, ['assignid' => $cm->id]);
$data = $DB->get_records_sql($sql, ['assignid' => $cm->id,
'instancestatus' => \gradingform_instance::INSTANCE_STATUS_ACTIVE]);
$data = set_blindmarking($data, $assign, $cm);
return $data;
}
Expand Down

0 comments on commit efc7ad0

Please sign in to comment.