fix(web/problem): answer_form->extra_validator

This commit is contained in:
Baoshuo Ren 2023-01-12 08:56:44 +08:00
parent 2dd91d1853
commit ee0ff210bb
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -193,7 +193,7 @@ if ($pre_submit_check_ret === true && !$no_more_submission) {
'FS::randomAvailableSubmissionFileName', 'FS::randomAvailableSubmissionFileName',
'handleUpload' 'handleUpload'
); );
$zip_answer_form->extra_validators[] = $submission_extra_validator; $zip_answer_form->extra_validator = $submission_extra_validator;
$zip_answer_form->succ_href = $is_participating ? '/contest/' . UOJContest::info('id') . '/submissions' : '/submissions'; $zip_answer_form->succ_href = $is_participating ? '/contest/' . UOJContest::info('id') . '/submissions' : '/submissions';
$zip_answer_form->runAtServer(); $zip_answer_form->runAtServer();
} }