fix: dd1d1150ff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-01-19 16:52:58 +08:00
parent dd1d1150ff
commit 6fce5b6ca4
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -95,7 +95,7 @@ $view_type_form->addSelect('view_content_type', [
'ALL_AFTER_AC' => 'AC 后',
'ALL' => '所有人',
],
'default_value' => $problem_extra_config['view_content_type'],
'default_value' => UOJProblem::cur()->getExtraConfig('view_content_type'),
]);
$view_type_form->addSelect('view_all_details_type', [
'div_class' => 'row align-items-center g-0 mt-3',
@ -108,7 +108,7 @@ $view_type_form->addSelect('view_all_details_type', [
'ALL_AFTER_AC' => 'AC 后',
'ALL' => '所有人'
],
'default_value' => $problem_extra_config['view_all_details_type'],
'default_value' => UOJProblem::cur()->getExtraConfig('view_all_details_type'),
]);
$view_type_form->addSelect('view_details_type', [
'div_class' => 'row align-items-center g-0 mt-3',
@ -121,7 +121,7 @@ $view_type_form->addSelect('view_details_type', [
'ALL_AFTER_AC' => 'AC 后',
'ALL' => '所有人',
],
'default_value' => $problem_extra_config['view_details_type'],
'default_value' => UOJProblem::cur()->getExtraConfig('view_details_type'),
]);
$view_type_form->handle = function () {
$config = UOJProblem::cur()->getExtraConfig();
@ -149,7 +149,7 @@ $solution_view_type_form->addSelect('view_solution_type', [
'ALL_AFTER_AC' => 'AC 后',
'ALL' => '所有人',
],
'default_value' => $problem_extra_config['view_solution_type'],
'default_value' => UOJProblem::cur()->getExtraConfig('view_solution_type'),
]);
$solution_view_type_form->addSelect('submit_solution_type', [
'div_class' => 'row align-items-center g-0 mt-3',
@ -161,7 +161,7 @@ $solution_view_type_form->addSelect('submit_solution_type', [
'ALL_AFTER_AC' => 'AC 后',
'ALL' => '所有人',
],
'default_value' => $problem_extra_config['submit_solution_type'],
'default_value' => UOJProblem::cur()->getExtraConfig('submit_solution_type'),
]);
$solution_view_type_form->handle = function () {
$config = UOJProblem::cur()->getExtraConfig();