Change refr in visual console. Tiquet: #3277

(cherry picked from commit 1c374acc3f)
This commit is contained in:
m-lopez-f 2016-01-28 11:57:32 +01:00
parent 5ec568ddf9
commit a637e06147
5 changed files with 5 additions and 15 deletions

View File

@ -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"]);

View File

@ -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=';

View File

@ -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'])) {

View File

@ -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 ();

View File

@ -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) {