Skip to content

Commit

Permalink
SAK-42783 Fix disappearing rubrics when attaching/removing (sakaiproj…
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish authored Nov 19, 2019
1 parent dedf5af commit 63cae7d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class SakaiRubricCriteriaGrading extends RubricsElement {

this._urlEncodedStateDetails = newValue;
this.stateDetails = JSON.parse(unescape(newValue));
this.stateDetailsJson = newValue;
if (this.criteria) this.setupCriteriaFromState();
}

Expand Down Expand Up @@ -208,7 +209,7 @@ export class SakaiRubricCriteriaGrading extends RubricsElement {

if (ed.criterionId === c.id) {

c.selectedRatingId = ed;
c.selectedRatingId = ed.selectedRatingId;
if (ed.pointsAdjusted) {
c.pointoverride = ed.points;
let ratingItem = c.ratings.filter(r => r.id == ed.selectedRatingId)[0];
Expand Down

0 comments on commit 63cae7d

Please sign in to comment.