Change refr in visual console. Tiquet: #3277
This commit is contained in:
parent
44d2ec501f
commit
168a261ac8
|
@ -29,7 +29,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');
|
||||
$refr = (int) get_parameter('refr',$config['vc_refr']);
|
||||
|
||||
if ($delete_layout) {
|
||||
db_process_sql_delete ('tlayout_data', array ('id_layout' => $id_layout));
|
||||
|
|
|
@ -1188,7 +1188,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'])) {
|
||||
|
|
|
@ -114,16 +114,6 @@ if (check_acl ($config['id_user'], 0, "RR")) {
|
|||
"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;
|
||||
}
|
||||
|
||||
$sub2 = array ();
|
||||
|
||||
$layouts = db_get_all_rows_in_table ('tlayout', 'name');
|
||||
|
|
|
@ -45,7 +45,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