Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Chalenko <gregory.chalenko@zabbix.com>2020-10-12 11:56:26 +0300
committerGregory Chalenko <gregory.chalenko@zabbix.com>2020-10-12 11:56:26 +0300
commit2645c25a71b766b47aed0d3b9f177d57c966e61e (patch)
treebe6ba304ed3a59b96f675d92e4c5af52093c4a0f /ui/app/controllers/CControllerHost.php
parentbdf5d7267805108dd9df648624295bf940716b6e (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.php3
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;
}
}