diff options
author | Dace Petra <dace.petra@zabbix.com> | 2022-07-19 14:22:07 +0300 |
---|---|---|
committer | Dace Petra <dace.petra@zabbix.com> | 2022-07-19 14:22:07 +0300 |
commit | b170e29a4bc84aeeba695f01f44a34849e114dca (patch) | |
tree | 70245be3c6d708b1bec16f069d9d91748795b813 | |
parent | 3c434ce949282621f7cdc9e1bcaf6817a699f05d (diff) |
..F....... [ZBX-21311] fixed runtime error for host and host prototype graph preview tabs
-rw-r--r-- | ChangeLog.d/bugfix/ZBX-21311 | 1 | ||||
-rw-r--r-- | ui/chart.php | 1 | ||||
-rw-r--r-- | ui/chart2.php | 1 | ||||
-rw-r--r-- | ui/chart3.php | 4 | ||||
-rw-r--r-- | ui/chart4.php | 1 | ||||
-rw-r--r-- | ui/chart6.php | 1 | ||||
-rw-r--r-- | ui/chart7.php | 2 |
7 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog.d/bugfix/ZBX-21311 b/ChangeLog.d/bugfix/ZBX-21311 new file mode 100644 index 00000000000..7395485efed --- /dev/null +++ b/ChangeLog.d/bugfix/ZBX-21311 @@ -0,0 +1 @@ +..F....... [ZBX-21311] fixed runtime error for host and host prototype graph preview tabs (dpetra) diff --git a/ui/chart.php b/ui/chart.php index b1216e6038b..2a4503a7518 100644 --- a/ui/chart.php +++ b/ui/chart.php @@ -43,6 +43,7 @@ $fields = [ 'widget_view' => [T_ZBX_INT, O_OPT, null, IN('0,1'), null] ]; if (!check_fields($fields)) { + session_write_close(); exit(); } validateTimeSelectorPeriod(getRequest('from'), getRequest('to')); diff --git a/ui/chart2.php b/ui/chart2.php index 98cfd5f988e..ef797ebc03c 100644 --- a/ui/chart2.php +++ b/ui/chart2.php @@ -42,6 +42,7 @@ $fields = [ 'widget_view' => [T_ZBX_INT, O_OPT, null, IN('0,1'), null] ]; if (!check_fields($fields)) { + session_write_close(); exit(); } validateTimeSelectorPeriod(getRequest('from'), getRequest('to')); diff --git a/ui/chart3.php b/ui/chart3.php index 42befd6b11b..b97ea4e144f 100644 --- a/ui/chart3.php +++ b/ui/chart3.php @@ -56,6 +56,7 @@ $fields = [ 'widget_view' => [T_ZBX_INT, O_OPT, null, IN('0,1'), null] ]; if (!check_fields($fields)) { + session_write_close(); exit(); } validateTimeSelectorPeriod(getRequest('from'), getRequest('to')); @@ -143,7 +144,8 @@ elseif (hasRequest('i') || hasRequest('items')) { } else { show_error_message(_('No items defined.')); - exit; + session_write_close(); + exit(); } /* diff --git a/ui/chart4.php b/ui/chart4.php index 3c4126d029f..3812369445c 100644 --- a/ui/chart4.php +++ b/ui/chart4.php @@ -32,6 +32,7 @@ $fields = [ 'triggerid' => [T_ZBX_INT, O_MAND, P_SYS, DB_ID, null] ]; if (!check_fields($fields)) { + session_write_close(); exit(); } diff --git a/ui/chart6.php b/ui/chart6.php index 874a94bed9a..6e917a0581a 100644 --- a/ui/chart6.php +++ b/ui/chart6.php @@ -41,6 +41,7 @@ $fields = [ 'widget_view' => [T_ZBX_INT, O_OPT, null, IN('0,1'), null] ]; if (!check_fields($fields)) { + session_write_close(); exit(); } validateTimeSelectorPeriod(getRequest('from'), getRequest('to')); diff --git a/ui/chart7.php b/ui/chart7.php index db184aa5d8d..bd9903778af 100644 --- a/ui/chart7.php +++ b/ui/chart7.php @@ -44,6 +44,7 @@ $fields = [ 'widget_view' => [T_ZBX_INT, O_OPT, null, IN('0,1'), null] ]; if (!check_fields($fields)) { + session_write_close(); exit(); } validateTimeSelectorPeriod(getRequest('from'), getRequest('to')); @@ -54,6 +55,7 @@ $items = hasRequest('i') if (!$items) { show_error_message(_('No items defined.')); + session_write_close(); exit(); } |