Skip to content
Snippets Groups Projects
Commit 334f28e9 authored by Jared Hancock's avatar Jared Hancock
Browse files

forms: Hotfix to correct creating lists

parent 14490cac
No related branches found
No related tags found
No related merge requests found
...@@ -32,8 +32,7 @@ if($_POST) { ...@@ -32,8 +32,7 @@ if($_POST) {
'name_plural'=>$_POST['name_plural'], 'name_plural'=>$_POST['name_plural'],
'sort_mode'=>$_POST['sort_mode'], 'sort_mode'=>$_POST['sort_mode'],
'notes'=>$_POST['notes'])); 'notes'=>$_POST['notes']));
if ($list->isValid()) $list->save(true);
$list->save(true);
break; break;
case 'mass_process': case 'mass_process':
...@@ -71,8 +70,7 @@ if($_POST) { ...@@ -71,8 +70,7 @@ if($_POST) {
'value'=>$_POST["value-new-$i"], 'value'=>$_POST["value-new-$i"],
'extra'=>$_POST["extra-new-$i"] 'extra'=>$_POST["extra-new-$i"]
)); ));
if ($item->isValid()) $item->save();
$item->save();
} }
# Invalidate items cache # Invalidate items cache
$list->_items = false; $list->_items = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment