fix(web): problem extra_config default value

This commit is contained in:
Baoshuo Ren 2022-12-04 18:59:56 +08:00
parent 678582fc47
commit 08bad49b58
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -61,8 +61,8 @@ EOD;
$new_problem_form->handle = function () use ($default_statement) { $new_problem_form->handle = function () use ($default_statement) {
DB::insert([ DB::insert([
"insert into problems", "insert into problems",
"(title, uploader, is_hidden, submission_requirement)", "(title, uploader, is_hidden, submission_requirement, extra_config)",
"values", DB::tuple(["New Problem", Auth::id(), 1, "{}"]) "values", DB::tuple(["New Problem", Auth::id(), 1, "{}", "{}"])
]); ]);
$id = DB::insert_id(); $id = DB::insert_id();
DB::insert([ DB::insert([