mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-8098-Bug-en-filtro-de-Agents/Alerts' into 'develop'
Ent 8098 bug en filtro de agents/alerts See merge request artica/pandorafms!4470
This commit is contained in:
commit
cd2f3b8a54
@ -133,7 +133,9 @@ class AgentsAlerts extends HTML
|
|||||||
// Refresh rate.
|
// Refresh rate.
|
||||||
$this->refreshSelectedRate = (string) get_parameter('refresh-rate', '30');
|
$this->refreshSelectedRate = (string) get_parameter('refresh-rate', '30');
|
||||||
// Show Modules without alerts table.
|
// Show Modules without alerts table.
|
||||||
$this->showWithoutAlertModules = isset($_POST['show-modules-without-alerts']);
|
$this->showWithoutAlertModules = (isset($_POST['show-modules-without-alerts']))
|
||||||
|
? true
|
||||||
|
: isset($_GET['show-modules-without-alerts']);
|
||||||
// Selected group.
|
// Selected group.
|
||||||
$this->groupId = (int) get_parameter('group-id', 0);
|
$this->groupId = (int) get_parameter('group-id', 0);
|
||||||
// Create alert token.
|
// Create alert token.
|
||||||
@ -200,6 +202,8 @@ class AgentsAlerts extends HTML
|
|||||||
*/
|
*/
|
||||||
private function createAlertTable()
|
private function createAlertTable()
|
||||||
{
|
{
|
||||||
|
global $config;
|
||||||
|
|
||||||
$table = new stdClass();
|
$table = new stdClass();
|
||||||
|
|
||||||
if ($this->groupId > 0) {
|
if ($this->groupId > 0) {
|
||||||
@ -219,7 +223,7 @@ class AgentsAlerts extends HTML
|
|||||||
$sql = 'SELECT tagente.alias, tagente_modulo.nombre,
|
$sql = 'SELECT tagente.alias, tagente_modulo.nombre,
|
||||||
tagente_modulo.id_agente_modulo FROM tagente_modulo
|
tagente_modulo.id_agente_modulo FROM tagente_modulo
|
||||||
INNER JOIN tagente ON tagente.id_agente = tagente_modulo.id_agente
|
INNER JOIN tagente ON tagente.id_agente = tagente_modulo.id_agente
|
||||||
WHERE id_agente_modulo NOT IN (SELECT id_agent_module FROM talert_template_modules) '.$grupo.' LIMIT 20 OFFSET '.$offset_modules;
|
WHERE id_agente_modulo NOT IN (SELECT id_agent_module FROM talert_template_modules) '.$grupo.' LIMIT '.$config['block_size'].' OFFSET '.$offset_modules;
|
||||||
|
|
||||||
$agent_modules = db_get_all_rows_sql($sql);
|
$agent_modules = db_get_all_rows_sql($sql);
|
||||||
|
|
||||||
@ -227,7 +231,7 @@ class AgentsAlerts extends HTML
|
|||||||
$count_agent_module[0]['COUNT(tagente_modulo.nombre)'],
|
$count_agent_module[0]['COUNT(tagente_modulo.nombre)'],
|
||||||
ui_get_url_refresh(),
|
ui_get_url_refresh(),
|
||||||
0,
|
0,
|
||||||
0,
|
false,
|
||||||
false,
|
false,
|
||||||
'offset',
|
'offset',
|
||||||
true,
|
true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user