From 3e556576e559982ccb0e28f5571d29a8ce699a77 Mon Sep 17 00:00:00 2001 From: valentina Date: Tue, 8 Oct 2024 12:50:47 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20filtro=20per=20tipo=20attivit=C3=A0=20in?= =?UTF-8?q?=20statistiche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/statistiche/edit.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/statistiche/edit.php b/modules/statistiche/edit.php index 1aa05b621..c9e86f3bb 100755 --- a/modules/statistiche/edit.php +++ b/modules/statistiche/edit.php @@ -500,7 +500,7 @@ ORDER BY `ragione_sociale` ASC"); $dataset = ''; -if ($_SESSION['superselect']['idtipiintervento']) { +if (is_array($_SESSION['superselect']['idtipiintervento'])) { $where = '`in_interventi_tecnici`.`id` IN('.implode(',', (array) json_decode((string) $_SESSION['superselect']['idtipiintervento'])).')'; } else { $where = '1=1'; @@ -542,12 +542,8 @@ echo '
-
'; -if ($_SESSION['superselect']['idanagrafica']) { - echo ' - {["type": "select", "multiple": "1", "label": "'.tr('Tipi attività').'", "name": "idtipiintervento[]", "ajax-source": "tipiintervento", "value": "'.implode(',', (array) json_decode((string) $_SESSION['superselect']['idtipiintervento'])).'", "placeholder": "Tutti" ]}'; -} -echo ' +
+ {["type": "select", "multiple": "1", "label": "'.tr('Tipi attività').'", "name": "idtipiintervento[]", "ajax-source": "tipiintervento", "value": "'.implode(',', (array) json_decode((string) $_SESSION['superselect']['idtipiintervento'])).'", "placeholder": "Tutti" ]}