Skip to content

Commit

Permalink
Merge pull request #183 from kaltura/KMS-18791_update_grade_flag_logic
Browse files Browse the repository at this point in the history
KMS-18791 fix 'updategrade' flag, it should be true when submission f…
  • Loading branch information
muli authored Dec 2, 2018
2 parents 6a3d0c8 + 1fda1f1 commit 7d0bcde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/kalvidassign/single_submission.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
if ($submission) {

$submissionchanged = strcmp($submission->submissioncomment, $submitted_data->submissioncomment_editor['text']);
if ($submission->grade == $submitted_data->xgrade && $submissionchanged) {
if ($submission->grade == $submitted_data->xgrade && !$submissionchanged) {
$updategrade = false;
}
if ($submissionchanged || $updategrade) {
Expand Down

0 comments on commit 7d0bcde

Please sign in to comment.