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-09-25 11:20:17 +0300
committerGregory Chalenko <gregory.chalenko@zabbix.com>2020-09-25 11:20:17 +0300
commitadd3beeb989b4bb523c26c9e1fe0b6c5a6c2e443 (patch)
tree744835018d41df72949bda42d07bac2a003b81f5 /ui/app/controllers/CControllerHost.php
parent2734648bbbb3ee647dcc33e5764744c6fc9b53d3 (diff)
..F....... [ZBXNEXT-710] fixed tag filtration, keep tags having or tag or value
Diffstat (limited to 'ui/app/controllers/CControllerHost.php')
-rw-r--r--ui/app/controllers/CControllerHost.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/controllers/CControllerHost.php b/ui/app/controllers/CControllerHost.php
index f07dbe47801..fa2e2463f5e 100644
--- a/ui/app/controllers/CControllerHost.php
+++ b/ui/app/controllers/CControllerHost.php
@@ -364,7 +364,7 @@ abstract class CControllerHost extends CController {
protected function cleanInput(array $input): array {
if (array_key_exists('tags', $input) && $input['tags']) {
$input['tags'] = array_filter($input['tags'], function($tag) {
- return $tag['tag'] !== '' && $tag['value'] !== '';
+ return !($tag['tag'] === '' && $tag['value'] === '');
});
}