mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 23:08: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) {
|
$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([
|
||||||
|
Loading…
Reference in New Issue
Block a user