Fixed #45 - Item list don't works properly when All applications selected.
This commit is contained in:
@@ -421,7 +421,7 @@ function (angular, _) {
|
|||||||
promises.push(this.getGroupByName(groups));
|
promises.push(this.getGroupByName(groups));
|
||||||
}
|
}
|
||||||
// Get applicationids from names
|
// Get applicationids from names
|
||||||
if (apps) {
|
if (apps && apps[0] !== '*') {
|
||||||
promises.push(this.getAppByName(apps));
|
promises.push(this.getAppByName(apps));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -441,7 +441,7 @@ function (angular, _) {
|
|||||||
return object.hostid;
|
return object.hostid;
|
||||||
}), 'hostid');
|
}), 'hostid');
|
||||||
}
|
}
|
||||||
if (apps) {
|
if (apps && apps[0] !== '*') {
|
||||||
applicationids = _.map(_.filter(results, function (object) {
|
applicationids = _.map(_.filter(results, function (object) {
|
||||||
return object.applicationid;
|
return object.applicationid;
|
||||||
}), 'applicationid');
|
}), 'applicationid');
|
||||||
|
|||||||
Reference in New Issue
Block a user