From 08bad49b58cfa4c63e3a87af328aab69e66b720e Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 4 Dec 2022 18:59:56 +0800 Subject: [PATCH] fix(web): problem extra_config default value --- web/app/controllers/problem_set.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/controllers/problem_set.php b/web/app/controllers/problem_set.php index 0de0224..ef695ea 100644 --- a/web/app/controllers/problem_set.php +++ b/web/app/controllers/problem_set.php @@ -61,8 +61,8 @@ EOD; $new_problem_form->handle = function () use ($default_statement) { DB::insert([ "insert into problems", - "(title, uploader, is_hidden, submission_requirement)", - "values", DB::tuple(["New Problem", Auth::id(), 1, "{}"]) + "(title, uploader, is_hidden, submission_requirement, extra_config)", + "values", DB::tuple(["New Problem", Auth::id(), 1, "{}", "{}"]) ]); $id = DB::insert_id(); DB::insert([