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:
authorVladimirs Maksimovs <vladimirs.maksimovs@zabbix.com>2022-05-24 16:24:08 +0300
committerVladimirs Maksimovs <vladimirs.maksimovs@zabbix.com>2022-05-24 16:24:08 +0300
commitf95eec105d21e6ae486627b0242fae03e4a673b9 (patch)
tree60cc7f3fd85e5c73d2e7a11b7ecd4cd5ddde4ba1
parentdc463c775fc27f5b33b55ec52292f9658d12e845 (diff)
A......... [ZBX-20613] fixed ability to delete a template if it have a trigger on which depends the triggers of the child templates or hosts
-rw-r--r--ui/include/classes/api/services/CTemplate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/include/classes/api/services/CTemplate.php b/ui/include/classes/api/services/CTemplate.php
index a4686dee66c..e08aeac8c7c 100644
--- a/ui/include/classes/api/services/CTemplate.php
+++ b/ui/include/classes/api/services/CTemplate.php
@@ -736,7 +736,7 @@ class CTemplate extends CHostGeneral {
$result = DBselect(DB::makeSql('hosts_templates', $options));
while ($row = DBfetch($result)) {
- if (!in_array($row['templateid'], $templateids)) {
+ if (!in_array($row['hostid'], $templateids)) {
$del_links_clear[$row['templateid']][$row['hostid']] = true;
}
}