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

forms: Remove isValid check pre-save

The upstream ORM method was removed
parent 40d3aa04
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,7 @@ if($_POST) {
foreach ($fields as $f)
if (isset($_POST[$f]))
$form->set($f, $_POST[$f]);
if ($form->isValid())
$form->save(true);
$form->save(true);
$names = array();
foreach ($form->getDynamicFields() as $field) {
$id = $field->get('id');
......@@ -57,8 +56,7 @@ if($_POST) {
'title'=>$_POST['title'],
'instructions'=>$_POST['instructions'],
'notes'=>$_POST['notes']));
if ($form->isValid())
$form->save(true);
$form->save(true);
break;
case 'mass_process':
......
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