File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ public function process_coderunner_options($data) {
145
145
}
146
146
147
147
// Add the extra methods required by MDL-83541.
148
- #[Override]
148
+ // #[Override] // This breaks the restore at run time if used with older versions of moodle so commented out.
149
149
public static function convert_backup_to_questiondata (array $ backupdata ): stdClass {
150
150
$ questiondata = parent ::convert_backup_to_questiondata ($ backupdata );
151
151
$ qtype = $ questiondata ->qtype ;
@@ -175,7 +175,7 @@ public static function convert_backup_to_questiondata(array $backupdata): stdCla
175
175
return $ questiondata ;
176
176
}
177
177
178
- #[Override]
178
+ // #[Override] // This breaks the restore at run time if used with older versions of moodle so commented out.
179
179
protected function define_excluded_identity_hash_fields (): array {
180
180
return [
181
181
'/answers ' ,
@@ -188,7 +188,7 @@ protected function define_excluded_identity_hash_fields(): array {
188
188
];
189
189
}
190
190
191
- #[Override]
191
+ // #[Override] // This breaks the restore at run time if used with older versions of moodle so commented out.
192
192
public static function remove_excluded_question_data (stdClass $ questiondata , array $ excludefields = []): stdClass {
193
193
if (isset ($ questiondata ->options ->customise )) {
194
194
unset($ questiondata ->options ->customise );
You can’t perform that action at this time.
0 commit comments