Skip to content

Commit

Permalink
Merge pull request #736 from turnitin/revert-660-fix-issue-659
Browse files Browse the repository at this point in the history
Revert "Fix unit test - Resolves issue #659"
  • Loading branch information
jack-tii authored Aug 14, 2024
2 parents b7d2836 + b29e206 commit ffa502c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/modules/turnitin_quiz.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ public function update_mark($attemptid, $identifier, $userid, $grade, $quizgrade
foreach ($attempt->get_slots() as $slot) {
$answer = $attempt->get_question_attempt($slot)->get_response_summary();
// Check if this is the slot the mark is for by matching content.
$answerslot = $answer ? $answer.$slot : $answer;
if (sha1($answerslot) == $identifier) {
if (sha1($answer.$slot) == $identifier) {
// Translate the TFS grade to a mark for the question.
$questionmaxmark = $attempt->get_question_attempt($slot)->get_max_mark();

Expand Down

0 comments on commit ffa502c

Please sign in to comment.