Skip to content

Commit

Permalink
SAK-41529 Used submission id rather than assignment id ...
Browse files Browse the repository at this point in the history
... as the evaluated-item-id
  • Loading branch information
adrianfish authored and Miguel Pellicer committed Mar 25, 2019
1 parent 4e1f0df commit dcd57e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,9 @@ public boolean isVisible() {
String[] bits = assignment.getExternalId().split("/");
if (bits != null && bits.length >= 1) {
String assignmentId = bits[bits.length-1];
sakaiRubricPreview.add(AttributeModifier.append("evaluated-item-id", studentUuid));
sakaiRubricPreview.add(AttributeModifier.append("entity-id", assignmentId));//this only works for Assignments atm
String submissionId = rubricsService.getRubricEvaluationObjectId(assignmentId, studentUuid, RubricsConstants.RBCS_TOOL_ASSIGNMENT);
sakaiRubricPreview.add(AttributeModifier.append("entity-id", assignmentId));
sakaiRubricPreview.add(AttributeModifier.append("evaluated-item-id", submissionId));
} else {
log.warn(assignment.getExternalId() + " is not a valid assignment reference");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ export class SakaiRubricCriterionStudent extends SakaiElement {
if (r.id == ed.selectedRatingId) {
r.selected = true;
selectedRatingItem = r;
} else {
r.selected = false;
}
});

Expand Down

0 comments on commit dcd57e4

Please sign in to comment.