diff options
author | Vladimirs Maksimovs <vladimirs.maksimovs@zabbix.com> | 2022-05-24 16:24:08 +0300 |
---|---|---|
committer | Vladimirs Maksimovs <vladimirs.maksimovs@zabbix.com> | 2022-05-24 16:24:08 +0300 |
commit | f95eec105d21e6ae486627b0242fae03e4a673b9 (patch) | |
tree | 60cc7f3fd85e5c73d2e7a11b7ecd4cd5ddde4ba1 | |
parent | dc463c775fc27f5b33b55ec52292f9658d12e845 (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.php | 2 |
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; } } |