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:
authorDace Petra <dace.petra@zabbix.com>2022-08-16 17:28:44 +0300
committerDace Petra <dace.petra@zabbix.com>2022-08-16 17:28:44 +0300
commit6bd2cc1fbc4e679f9d3853c4d5aa9d94b40a5a0e (patch)
treeb3e71381a99cc724aa44da14e3b895f34384ada6 /ui/hostgroups.php
parent4fe3127e3b99735b7d673a6ee708d9023ee3f2ac (diff)
..F....... [ZBX-21070] fixed coding style
Diffstat (limited to 'ui/hostgroups.php')
-rw-r--r--ui/hostgroups.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/hostgroups.php b/ui/hostgroups.php
index dda4ccdee7a..5c96f153d59 100644
--- a/ui/hostgroups.php
+++ b/ui/hostgroups.php
@@ -237,6 +237,7 @@ if (hasRequest('form')) {
$data['group'] = reset($groups);
$data['group']['is_discovery_rule_editable'] = false;
+
if ($data['group']['discoveryRule']) {
$data['group']['is_discovery_rule_editable'] = (bool) API::DiscoveryRule()->get([
'output' => [],
@@ -345,6 +346,7 @@ else {
foreach ($data['groups'] as &$group) {
$group['is_discovery_rule_editable'] = false;
+
if ($group['discoveryRule']) {
$group['is_discovery_rule_editable'] = (bool) API::DiscoveryRule()->get([
'output' => [],
@@ -353,6 +355,7 @@ else {
'preservekeys' => true
]);
}
+
order_result($group['hosts'], 'name');
order_result($group['templates'], 'name');
}