mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Correzione filtri su supersearch per utenti non admin
This commit is contained in:
parent
4496b3da0a
commit
090910ec20
@ -20,13 +20,16 @@ foreach ($fields as $name => $value) {
|
|||||||
$query .= ', '.$value." AS '".str_replace("'", "\'", $name)."'";
|
$query .= ', '.$value." AS '".str_replace("'", "\'", $name)."'";
|
||||||
}
|
}
|
||||||
|
|
||||||
$query .= ' FROM in_interventi WHERE idanagrafica IN('.implode(',', $idanagrafiche).') ';
|
$query .= ' FROM in_interventi ';
|
||||||
|
|
||||||
|
$where = [];
|
||||||
foreach ($fields as $name => $value) {
|
foreach ($fields as $name => $value) {
|
||||||
$query .= ' OR '.$value.' LIKE "%'.$term.'%"';
|
$where[] = $value.' LIKE "%'.$term.'%"';
|
||||||
}
|
}
|
||||||
|
|
||||||
$query .= Modules::getAdditionalsQuery('Interventi');
|
$query .= ' WHERE ('.implode(' OR ', $where).') ';
|
||||||
|
|
||||||
|
$query .= ' '.Modules::getAdditionalsQuery('Interventi');
|
||||||
|
|
||||||
$rs = $dbo->fetchArray($query);
|
$rs = $dbo->fetchArray($query);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user