Fixed "autocomplete agent search" with disabled agents. Ticket #3655
This commit is contained in:
parent
60261b2d01
commit
710e15f1b2
|
@ -92,10 +92,11 @@ if ($search_agents && (!is_metaconsole() || $force_local)) {
|
|||
}
|
||||
}
|
||||
|
||||
switch ($all) {
|
||||
case 'enabled':
|
||||
$filter['disabled'] = 0;
|
||||
break;
|
||||
if ($all === 'enabled') {
|
||||
$filter['disabled'] = 1;
|
||||
}
|
||||
else {
|
||||
$filter['disabled'] = 0;
|
||||
}
|
||||
|
||||
$data = array();
|
||||
|
|
Loading…
Reference in New Issue