Skip to content

Commit 762ccda

Browse files
committed
fix: selezione tecnico in automezzi limitata ad anagrafiche di tipo tecnico
1 parent eafbacd commit 762ccda

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

modules/automezzi/ajax/select.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
if (!empty($superselect['idautomezzo'])) {
4747
$where[] = '`zz_users`.`id` IN (SELECT `id_user` FROM `zz_user_sedi` WHERE `idsede`='.prepare($superselect['idautomezzo']).')';
4848
}
49+
50+
// Filtro per tipo anagrafica "Tecnico"
51+
$where[] = '`an_tipianagrafiche`.`id`='.prepare($tipologia);
4952
}
5053

5154
if (!empty($search)) {

0 commit comments

Comments
 (0)