[Tags performance] Fixed not init filter
This commit is contained in:
parent
4ac4f46daf
commit
18ad7a2ce9
|
@ -2802,6 +2802,11 @@ function modules_get_state_condition($state, $prefix = "tae") {
|
|||
$prefix.estado = ".AGENT_MODULE_STATUS_NORMAL_ALERT."
|
||||
OR $prefix.estado = ".AGENT_MODULE_STATUS_NORMAL."
|
||||
)";
|
||||
case AGENT_MODULE_STATUS_NOT_NORMAL:
|
||||
return "(
|
||||
$prefix.estado <> " . AGENT_MODULE_STATUS_NORMAL . "
|
||||
AND $prefix.estado <> " . AGENT_MODULE_STATUS_NORMAL_ALERT . "
|
||||
)";
|
||||
}
|
||||
// If the state is not an expected state, return no condition
|
||||
return "1=1";
|
||||
|
|
|
@ -490,7 +490,6 @@ if (is_ajax ()) {
|
|||
asort($result);
|
||||
}
|
||||
else {
|
||||
$modules = agents_get_modules();
|
||||
if($idAgents[0] < 0){
|
||||
if($selection_mode == 'common'){
|
||||
$sql_agent_total = 'SELECT count(*) FROM tagente WHERE disabled=0';
|
||||
|
|
Loading…
Reference in New Issue