Change refr in visual console. Tiquet: #3277
(cherry picked from commit 1c374acc3f
)
This commit is contained in:
parent
5ec568ddf9
commit
a637e06147
|
@ -43,7 +43,7 @@ if (!defined('METACONSOLE')) {
|
|||
$id_layout = (int) get_parameter ('id_layout');
|
||||
$copy_layout = (bool) get_parameter ('copy_layout');
|
||||
$delete_layout = (bool) get_parameter ('delete_layout');
|
||||
$refr = (int) get_parameter('refr', 60);
|
||||
$refr = (int) get_parameter('refr', $config['vc_refr']);
|
||||
$offset = (int) get_parameter('offset', 0);
|
||||
$pagination = (int) get_parameter ("pagination", $config["block_size"]);
|
||||
|
||||
|
|
|
@ -619,7 +619,7 @@ switch ($activeTab) {
|
|||
if (isset($config['vc_refr']) and $config['vc_refr'] != 0)
|
||||
$view_refresh = $config['vc_refr'];
|
||||
else
|
||||
$view_refresh = '60';
|
||||
$view_refresh = '300';
|
||||
|
||||
if (!defined('METACONSOLE')) {
|
||||
$url_base = 'index.php?sec=reporting&sec2=godmode/reporting/visual_console_builder&action=';
|
||||
|
|
|
@ -1274,7 +1274,7 @@ function config_process_config () {
|
|||
}
|
||||
|
||||
if (!isset ($config['vc_refr'])) {
|
||||
config_update_value ('vc_refr', 60);
|
||||
config_update_value ('vc_refr', 300);
|
||||
}
|
||||
|
||||
if (!isset($config['agent_size_text_small'])) {
|
||||
|
|
|
@ -128,16 +128,6 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
"godmode/reporting/map_builder",
|
||||
"godmode/reporting/visual_console_builder");
|
||||
|
||||
if (!empty($config['vc_refr'])) {
|
||||
$sub["godmode/reporting/map_builder"]["refr"] = $config['vc_refr'];
|
||||
}
|
||||
else if (((int)get_parameter('refr', 0)) > 0) {
|
||||
$sub["godmode/reporting/map_builder"]["refr"] = (int)get_parameter('refr', 0);
|
||||
}
|
||||
else {
|
||||
$sub["godmode/reporting/map_builder"]["refr"] = 60;
|
||||
}
|
||||
|
||||
$layouts = db_get_all_rows_in_table ('tlayout', 'name');
|
||||
$sub2 = array ();
|
||||
|
||||
|
@ -236,7 +226,7 @@ if (check_acl ($config['id_user'], 0, "RR")) {
|
|||
$menu_operation["reporting"]["text"] = __('Reporting');
|
||||
$menu_operation["reporting"]["sec2"] = "godmode/reporting/reporting_builder";
|
||||
$menu_operation["reporting"]["id"] = "oper-reporting";
|
||||
$menu_operation["reporting"]["refr"] = 60;
|
||||
$menu_operation["reporting"]["refr"] = 300;
|
||||
|
||||
$sub = array ();
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ $vc_refr = false;
|
|||
if (isset($config['vc_refr']) and $config['vc_refr'] != 0)
|
||||
$view_refresh = $config['vc_refr'];
|
||||
else
|
||||
$view_refresh = '60';
|
||||
$view_refresh = '300';
|
||||
|
||||
// Get input parameter for layout id
|
||||
if (! $id_layout) {
|
||||
|
|
Loading…
Reference in New Issue