From eadeb43b8abeb4fdf2488d0e179dee56f81f71b3 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Tue, 23 Apr 2024 14:15:24 +0200 Subject: [PATCH] Fix tipi scadenze --- modules/tipi_scadenze/ajax/select.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/tipi_scadenze/ajax/select.php b/modules/tipi_scadenze/ajax/select.php index 7c04aa475..992a4992a 100755 --- a/modules/tipi_scadenze/ajax/select.php +++ b/modules/tipi_scadenze/ajax/select.php @@ -21,7 +21,7 @@ include_once __DIR__.'/../../../core.php'; switch ($resource) { case 'tipi_scadenze': - $query = 'SELECT `title` AS `id`, `description` as `descrizione` FROM `co_tipi_scadenze` LEFT JOIN `co_tipi_scadenze_lang` ON (`co_tipi_scadenze_lang`.`id_record` = `co_tipi_scadenze`.`id` AND `co_tipi_scadenze_lang`.`id_lang` = '.prepare(Models\Locale::getDefault()->id).') |where| ORDER BY `title` ASC'; + $query = 'SELECT `title` AS `id`, `title` as `descrizione` FROM `co_tipi_scadenze` LEFT JOIN `co_tipi_scadenze_lang` ON (`co_tipi_scadenze_lang`.`id_record` = `co_tipi_scadenze`.`id` AND `co_tipi_scadenze_lang`.`id_lang` = '.prepare(Models\Locale::getDefault()->id).') |where| ORDER BY `title` ASC'; foreach ($elements as $element) { $filter[] = '`co_tipi_scadenze`.`id`='.prepare($element); @@ -29,7 +29,6 @@ switch ($resource) { if (!empty($search)) { $search_fields[] = '`title` LIKE '.prepare('%'.$search.'%'); - $search_fields[] = '`description` LIKE '.prepare('%'.$search.'%'); } break;