diff --git a/modules/iva/ajax/select.php b/modules/iva/ajax/select.php index 9e0909398..100707daf 100755 --- a/modules/iva/ajax/select.php +++ b/modules/iva/ajax/select.php @@ -28,7 +28,7 @@ switch ($resource) { $query = 'SELECT id, IF( codice_natura_fe IS NULL, IF(codice IS NULL, descrizione, CONCAT(codice, " - ", descrizione)), CONCAT( IF(codice IS NULL, descrizione, CONCAT(codice, " - ", descrizione)), " (", codice_natura_fe, ")" ) ) AS descrizione, percentuale FROM co_iva |where| ORDER BY descrizione ASC'; foreach ($elements as $element) { - $filter[] = '(deleted_at IS NULL OR id='.prepare($element).')'; + $filter[] = 'id='.prepare($element); } if (!empty($search)) {