Skip to content

Commit

Permalink
SAK-43206 Assignments : unfilled rubric preview for unreleased grade (s…
Browse files Browse the repository at this point in the history
…akaiproject#7886)

When the preview is shown to students, if the grade hasn't been released
yet we need to use a fake submission id.
  • Loading branch information
bgarciaentornos authored Feb 17, 2020
1 parent 3ac7ee3 commit 33273a6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,14 @@
#end
</strong>
#end
#set($submissionId="undefined")
#if ($submission.Graded && ($submission.GradeReleased || $submission.Returned))
#set($submissionId=$submission.Id)
#end
<sakai-rubric-student-button
token="$!rbcs-token"
tool-id="sakai.assignment"
evaluated-item-id="$submission.Id"
evaluated-item-id="$submissionId"
entity-id="$assignment.Id">
</sakai-rubric-student-button>
#if ($taggable && $allowAddAssignment)
Expand Down

0 comments on commit 33273a6

Please sign in to comment.