Skip to content

Commit

Permalink
fix: implement regrade check to prevent exception happening at regrad…
Browse files Browse the repository at this point in the history
…e time
  • Loading branch information
Pol Torrent i Soler committed Sep 25, 2024
1 parent 47d5e00 commit e87526a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions question.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,4 +404,8 @@ public function update_attempt_state_data_for_new_version(
) {
return $this->base->update_attempt_state_data_for_new_version($oldstep, $otherversion->base);
}

public function validate_can_regrade_with_other_version(question_definition $otherversion): ?string {
return $this->base->validate_can_regrade_with_other_version($otherversion->base);
}
}

0 comments on commit e87526a

Please sign in to comment.