fix(web/list/new): list content
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-22 16:30:09 +08:00
parent 71b68e1bba
commit 44b0087356
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -12,6 +12,8 @@ if (UOJList::userCanCreateList(Auth::user())) {
$new_list_form = new UOJBs4Form('new_list');
$new_list_form->handle = function () {
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['class_str'] = 'btn btn-primary';