Skip to content
Snippets Groups Projects
Commit f5666b8d authored by Peter Rotich's avatar Peter Rotich
Browse files

Fix form sort order

parent afecac1e
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ if($_POST) {
continue;
$field = DynamicFormField::create(array(
'form_id'=>$form->get('id'),
'sort'=>$_POST["sort-new-$i"] ? $_POST["sort-new-$i"] : $max_sort++,
'sort'=>$_POST["sort-new-$i"] ? $_POST["sort-new-$i"] : ++$max_sort,
'label'=>$_POST["label-new-$i"],
'type'=>$_POST["type-new-$i"],
'name'=>$_POST["name-new-$i"],
......
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