From 97bf431138bad5d72779aa8788bd1f8e32bc29f4 Mon Sep 17 00:00:00 2001 From: Matteo Date: Mon, 11 Sep 2023 16:24:01 +0200 Subject: [PATCH] Bugfix resource api checklist + gestione titolo checklist --- src/API/App/v1/Checklists.php | 3 ++- src/API/App/v1/Interventi.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/API/App/v1/Checklists.php b/src/API/App/v1/Checklists.php index 07e21d88b..c480fe788 100644 --- a/src/API/App/v1/Checklists.php +++ b/src/API/App/v1/Checklists.php @@ -128,7 +128,8 @@ class Checklists extends AppResource zz_checks.note, IF(zz_checks.id_parent IS NULL, 0, zz_checks.id_parent) AS id_parent, zz_checks.checked_by, - zz_checks.order AS ordine + zz_checks.order AS ordine, + zz_checks.is_titolo FROM zz_checks WHERE zz_checks.id = '.prepare($id); diff --git a/src/API/App/v1/Interventi.php b/src/API/App/v1/Interventi.php index dc4a78835..2480f96e2 100644 --- a/src/API/App/v1/Interventi.php +++ b/src/API/App/v1/Interventi.php @@ -160,7 +160,7 @@ class Interventi extends AppResource )'; } - if (setting('Mostra promemoria attività ai soli Tecnici assegnati') == 1) { + if (setting('Visualizza solo promemoria assegnati') == 1) { $records = database()->fetchArray($query, [ ':period_start' => $start, ':period_end' => $end,