Skip to content

Commit

Permalink
SAK-39937 Swapped event assignment id and submission id for full refe…
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish authored and ern committed May 22, 2018
1 parent ea4dc3e commit 21a53a9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5210,12 +5210,14 @@ public void doView_submission(RunData data) {
if (submission != null) {
// submission read event
LRS_Statement statement = getStatementForViewSubmittedAssignment(submission.getId(), a.getTitle());
Event event = eventTrackingService.newEvent(AssignmentConstants.EVENT_ACCESS_ASSIGNMENT_SUBMISSION, submission.getId(), null, false, NotificationService.NOTI_OPTIONAL, statement);
String ref = AssignmentReferenceReckoner.reckoner().submission(submission).reckon().getReference();
Event event = eventTrackingService.newEvent(AssignmentConstants.EVENT_ACCESS_ASSIGNMENT_SUBMISSION, ref, null, false, NotificationService.NOTI_OPTIONAL, statement);
eventTrackingService.post(event);
} else {
// otherwise, the student just read assignment description and prepare for submission
LRS_Statement statement = getStatementForViewAssignment(a.getId(), a.getTitle());
Event event = eventTrackingService.newEvent(AssignmentConstants.EVENT_ACCESS_ASSIGNMENT, a.getId(), null, false, NotificationService.NOTI_OPTIONAL, statement);
String ref = AssignmentReferenceReckoner.reckoner().assignment(a).reckon().getReference();
Event event = eventTrackingService.newEvent(AssignmentConstants.EVENT_ACCESS_ASSIGNMENT, ref, null, false, NotificationService.NOTI_OPTIONAL, statement);
eventTrackingService.post(event);
}
}
Expand Down

0 comments on commit 21a53a9

Please sign in to comment.