mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 21:58:41 +00:00
fix(web): problem extra_config default value
This commit is contained in:
parent
678582fc47
commit
08bad49b58
@ -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([
|
||||
|
Loading…
Reference in New Issue
Block a user