From e87526ada28baf42e788b36b1a4a7c0d3d620c35 Mon Sep 17 00:00:00 2001 From: Pol Torrent i Soler Date: Wed, 25 Sep 2024 11:33:54 +0200 Subject: [PATCH] fix: implement regrade check to prevent exception happening at regrade time --- question.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/question.php b/question.php index db4bd525..05ece334 100644 --- a/question.php +++ b/question.php @@ -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); + } }