diff --git a/modules/checklists/actions.php b/modules/checklists/actions.php index d08937ed3..4e4247fe4 100755 --- a/modules/checklists/actions.php +++ b/modules/checklists/actions.php @@ -57,7 +57,8 @@ switch (post('op')) { case 'add_item': $content = post('content'); $parent_id = post('parent') ?: null; - $item = ChecklistItem::build($record, $content, $parent_id); + $is_titolo = post('is_titolo'); + $item = ChecklistItem::build($record, $content, $parent_id, $is_titolo); flash()->info(tr('Nuova riga della checklist creata!')); diff --git a/modules/checklists/ajax.php b/modules/checklists/ajax.php index ec3263c4d..e18156b84 100644 --- a/modules/checklists/ajax.php +++ b/modules/checklists/ajax.php @@ -100,6 +100,7 @@ switch(post('op')){ } $record->content = post('content'); + $record->is_titolo = post('is_titolo'); $record->save(); flash()->info(tr('Informazioni salvate correttamente!')); diff --git a/modules/checklists/components/add-check.php b/modules/checklists/components/add-check.php index 682a8da72..893e218f2 100755 --- a/modules/checklists/components/add-check.php +++ b/modules/checklists/components/add-check.php @@ -33,29 +33,41 @@ foreach ($checks as $check) { echo '