mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
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…
x
Reference in New Issue
Block a user