From c47f943257423a9f8f281b87f88241ec0d39ac7c Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 5 Dec 2022 17:49:39 +0800 Subject: [PATCH] fix(web/problem/manage): difficulty config --- web/app/controllers/problem_statement_manage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/controllers/problem_statement_manage.php b/web/app/controllers/problem_statement_manage.php index ab2dfa5..b623642 100644 --- a/web/app/controllers/problem_statement_manage.php +++ b/web/app/controllers/problem_statement_manage.php @@ -65,7 +65,7 @@ $problem_editor->runAtServer(); $difficulty_form = new UOJForm('difficulty'); $difficulty_form->addSelect('difficulty', [ - 'options' => array_combine(UOJProblem::$difficulty, UOJProblem::$difficulty), + 'options' => [-1 => '暂无评定'] + array_combine(UOJProblem::$difficulty, UOJProblem::$difficulty), 'default_value' => UOJProblem::info('difficulty'), ]); $difficulty_form->handle = function () { @@ -183,4 +183,4 @@ $difficulty_form->runAtServer(); - \ No newline at end of file +