FIX: Not filtering correctly when come from dashboard
This commit is contained in:
parent
77fcbd3884
commit
e96e0f637a
@ -229,6 +229,15 @@ if ($search_status != '')
|
|||||||
{
|
{
|
||||||
$sql.= " AND fac.fk_statut = ".$search_status;
|
$sql.= " AND fac.fk_statut = ".$search_status;
|
||||||
}
|
}
|
||||||
|
if ($filter && $filter != -1)
|
||||||
|
{
|
||||||
|
$aFilter = explode(',', $filter);
|
||||||
|
foreach ($aFilter as $fil)
|
||||||
|
{
|
||||||
|
$filt = explode(':', $fil);
|
||||||
|
$sql .= ' AND ' . trim($filt[0]) . ' = ' . trim($filt[1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$nbtotalofrecords = 0;
|
$nbtotalofrecords = 0;
|
||||||
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
|
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user