Fixed #45 - Item list don't works properly when All applications selected.

This commit is contained in:
Alexander Zobnin
2015-07-20 20:26:36 +03:00
parent e72811cb2d
commit a657b0b7cd

View File

@@ -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');