fix(problem/submit): zip_answer_form
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-02 18:45:26 +08:00
parent 16cd5bb162
commit 017affe9ba
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -187,7 +187,7 @@ if ($pre_submit_check_ret === true && !$no_more_submission) {
'FS::randomAvailableSubmissionFileName', 'FS::randomAvailableSubmissionFileName',
'handleUpload' 'handleUpload'
); );
$zip_answer_form->extra_validator = $submission_extra_validator; $zip_answer_form->extra_validators[] = $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();
} }