Fix app filter returning all items in case of wrong app, #1597

This commit is contained in:
Alexander Zobnin
2023-08-01 13:13:51 +02:00
parent 906cc4aaf6
commit cef0a2e157

View File

@@ -150,7 +150,7 @@ func (ds *Zabbix) GetItemsBefore54(
var allItems []*Item
if len(appids) > 0 {
allItems, err = ds.GetAllItems(ctx, nil, appids, itemType, showDisabled, "")
} else if len(hostids) > 0 {
} else if appFilter == "" && len(hostids) > 0 {
allItems, err = ds.GetAllItems(ctx, hostids, nil, itemType, showDisabled, "")
}