Skip to content

Commit 444a216

Browse files
committed
fix: #1622 selettore tipoattività in statistiche
1 parent 084e839 commit 444a216

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/statistiche/edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ function init_calendar(calendar) {
515515
`ragione_sociale` ASC");
516516

517517
$dataset = '';
518-
if ($_SESSION['superselect']['idtipiintervento'] != "[]") {
519-
$where = '`in_interventi_tecnici`.`id` IN('.implode(',', (array) json_decode((string) $_SESSION['superselect']['idtipiintervento'])).')';
518+
if ($_SESSION['superselect']['idtipiintervento'] && $_SESSION['superselect']['idtipiintervento']!= '[]') {
519+
$where = '`in_interventi_tecnici`.`idtipointervento` IN('.implode(',', (array) json_decode((string) $_SESSION['superselect']['idtipiintervento'])).')';
520520
} else {
521521
$where = '1=1';
522522
}

0 commit comments

Comments
 (0)