From 54e1e961bfc472298af49fcda574735b094bd204 Mon Sep 17 00:00:00 2001 From: Matteo Date: Thu, 7 Mar 2024 16:34:23 +0100 Subject: [PATCH] Fix minori --- src/API/App/v1/CampiPersonalizzati.php | 2 +- src/API/App/v1/CampiPersonalizzatiValori.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API/App/v1/CampiPersonalizzati.php b/src/API/App/v1/CampiPersonalizzati.php index ad3479b71..6832dde4e 100644 --- a/src/API/App/v1/CampiPersonalizzati.php +++ b/src/API/App/v1/CampiPersonalizzati.php @@ -33,7 +33,7 @@ class CampiPersonalizzati extends AppResource { $module = (new Module())->getByName('Interventi'); - $query = 'SELECT `zz_fields`.`id`, `zz_fields`.`updated_at` FROM `zz_fields` WHERE id_module='.prepare($module->id_record); + $query = 'SELECT `zz_fields`.`id`, `zz_fields`.`updated_at` FROM `zz_fields` WHERE id_module='.prepare($module->id_record)." AND `content` LIKE '%text%'"; // Filtro per data if ($last_sync_at) { diff --git a/src/API/App/v1/CampiPersonalizzatiValori.php b/src/API/App/v1/CampiPersonalizzatiValori.php index 461ec7409..bede4b181 100644 --- a/src/API/App/v1/CampiPersonalizzatiValori.php +++ b/src/API/App/v1/CampiPersonalizzatiValori.php @@ -34,7 +34,7 @@ class CampiPersonalizzatiValori extends AppResource $module = (new Module())->getByName('Interventi'); - $query = 'SELECT `zz_field_record`.`id`, `zz_field_record`.`updated_at` FROM `zz_field_record` INNER JOIN `zz_fields` ON `zz_field_record`.`id_field` = `zz_fields`.`id` WHERE id_module='.prepare($module->id_record); + $query = 'SELECT `zz_field_record`.`id`, `zz_field_record`.`updated_at` FROM `zz_field_record` INNER JOIN `zz_fields` ON `zz_field_record`.`id_field` = `zz_fields`.`id` WHERE id_module='.prepare($module->id_record).' AND `zz_fields`.`content` LIKE "%text%"'; // Filtro per data if ($last_sync_at) {