1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-03-12 17:20:08 +01:00

fix: #1622 selettore tipoattività in statistiche

This commit is contained in:
valentina 2025-03-06 09:48:34 +01:00
parent 8059f3924d
commit 18c2b2ba00

View File

@ -515,8 +515,8 @@ ORDER BY
`ragione_sociale` ASC");
$dataset = '';
if ($_SESSION['superselect']['idtipiintervento'] != '[]') {
$where = '`in_interventi_tecnici`.`id` IN('.implode(',', (array) json_decode((string) $_SESSION['superselect']['idtipiintervento'])).')';
if ($_SESSION['superselect']['idtipiintervento'] && $_SESSION['superselect']['idtipiintervento']!= '[]') {
$where = '`in_interventi_tecnici`.`idtipointervento` IN('.implode(',', (array) json_decode((string) $_SESSION['superselect']['idtipiintervento'])).')';
} else {
$where = '1=1';
}