mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 19:28:41 +00:00
fix(web/list/new): list content
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
71b68e1bba
commit
44b0087356
@ -12,6 +12,8 @@ if (UOJList::userCanCreateList(Auth::user())) {
|
|||||||
$new_list_form = new UOJBs4Form('new_list');
|
$new_list_form = new UOJBs4Form('new_list');
|
||||||
$new_list_form->handle = function () {
|
$new_list_form->handle = function () {
|
||||||
DB::insert("insert into lists (title, is_hidden) values ('未命名题单', 1)");
|
DB::insert("insert into lists (title, is_hidden) values ('未命名题单', 1)");
|
||||||
|
$id = DB::insert_id();
|
||||||
|
DB::insert("insert into lists_contents (id, content, content_md) values ($id, '', '')");
|
||||||
};
|
};
|
||||||
$new_list_form->submit_button_config['align'] = 'right';
|
$new_list_form->submit_button_config['align'] = 'right';
|
||||||
$new_list_form->submit_button_config['class_str'] = 'btn btn-primary';
|
$new_list_form->submit_button_config['class_str'] = 'btn btn-primary';
|
||||||
|
Loading…
Reference in New Issue
Block a user