mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Monitor view with not normal at start
This commit is contained in:
parent
b082910ca6
commit
bab3248d57
@ -152,6 +152,13 @@ if ($ag_freestring !== '' || $moduletype !== '' || $datatype !== ''
|
||||
$autosearch = true;
|
||||
}
|
||||
|
||||
// The execution has not been done manually.
|
||||
$userRequest = (bool) get_parameter('uptbutton');
|
||||
if ($userRequest === false) {
|
||||
$autosearch = true;
|
||||
$status = AGENT_MODULE_STATUS_NOT_NORMAL;
|
||||
}
|
||||
|
||||
if (is_metaconsole() === false) {
|
||||
$ag_group = (int) get_parameter('ag_group', 0);
|
||||
} else {
|
||||
@ -2269,13 +2276,9 @@ if (empty($result) === false) {
|
||||
if ($count_modules > $config['block_size']) {
|
||||
$tablePagination = ui_pagination($count_modules, false, $offset, 0, true, 'offset', false);
|
||||
}
|
||||
} else {
|
||||
if ($first_interaction) {
|
||||
ui_print_info_message(['no_close' => true, 'message' => __('This group doesn\'t have any monitor')]);
|
||||
} else {
|
||||
ui_print_info_message(['no_close' => true, 'message' => __('Sorry no search parameters')]);
|
||||
}
|
||||
}
|
||||
|
||||
if (is_metaconsole() !== true) {
|
||||
html_print_action_buttons(
|
||||
|
Loading…
x
Reference in New Issue
Block a user