diff options
author | Gregory Chalenko <gregory.chalenko@zabbix.com> | 2020-10-12 11:56:26 +0300 |
---|---|---|
committer | Gregory Chalenko <gregory.chalenko@zabbix.com> | 2020-10-12 11:56:26 +0300 |
commit | 2645c25a71b766b47aed0d3b9f177d57c966e61e (patch) | |
tree | be6ba304ed3a59b96f675d92e4c5af52093c4a0f /ui/app/controllers/CControllerHost.php | |
parent | bdf5d7267805108dd9df648624295bf940716b6e (diff) |
..F....... [ZBXNEXT-710] fixed javascript error on initial dynamic rows render when first element is empty
Diffstat (limited to 'ui/app/controllers/CControllerHost.php')
-rw-r--r-- | ui/app/controllers/CControllerHost.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/app/controllers/CControllerHost.php b/ui/app/controllers/CControllerHost.php index f7ed03b47da..ac7020047c2 100644 --- a/ui/app/controllers/CControllerHost.php +++ b/ui/app/controllers/CControllerHost.php @@ -300,8 +300,11 @@ abstract class CControllerHost extends CController { $input['tags'] = array_filter($input['tags'], function($tag) { return !($tag['tag'] === '' && $tag['value'] === ''); }); + $input['tags'] = array_values($input['tags']); } + $input += ['severities' => []]; + return $input; } } |