diff --git a/modules/articoli/ajax/select.php b/modules/articoli/ajax/select.php index 0e6c3b273..bd4e24b86 100755 --- a/modules/articoli/ajax/select.php +++ b/modules/articoli/ajax/select.php @@ -37,8 +37,8 @@ switch ($resource) { $idagente = $superselect['idagente']; $query = "SELECT + DISTINCT mg_articoli.id, IF(`categoria`.`nome` IS NOT NULL, CONCAT(`categoria`.`nome`, IF(`sottocategoria`.`nome` IS NOT NULL, CONCAT(' (', `sottocategoria`.`nome`, ')'), '-')), '".tr('Nessuna categoria')."') AS optgroup, - mg_articoli.id, mg_articoli.barcode, mg_articoli.".($prezzi_ivati ? 'prezzo_vendita_ivato' : 'prezzo_vendita').' AS prezzo_vendita,