Fixed "autocomplete agent search" with disabled agents. Ticket #3655

This commit is contained in:
Arturo Gonzalez 2016-05-25 15:30:46 +02:00
parent 60261b2d01
commit 710e15f1b2
1 changed files with 5 additions and 4 deletions

View File

@ -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();