From b9174c5bfbff1e300ff1d08181de719b1ff465a9 Mon Sep 17 00:00:00 2001 From: loviuz Date: Mon, 20 Jan 2020 15:08:23 +0100 Subject: [PATCH] Fix selezione impianti per sede in interventi --- modules/my_impianti/ajax/select.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/my_impianti/ajax/select.php b/modules/my_impianti/ajax/select.php index 5d765e232..9d8275c51 100644 --- a/modules/my_impianti/ajax/select.php +++ b/modules/my_impianti/ajax/select.php @@ -25,8 +25,8 @@ switch ($resource) { } $where[] = 'idanagrafica='.prepare($superselect['idanagrafica']); - if (!empty($superselect['idsede'])) { - $where[] = 'idsede='.prepare($superselect['idsede']); + if (!empty($superselect['idsede_destinazione'])) { + $where[] = 'idsede='.prepare($superselect['idsede_destinazione']); } if (!empty($search)) {