Activity Stream: fixed activity steam query build when called for specific objects. Fixed minor style issues.

This commit is contained in:
chris Houseknecht
2014-01-16 16:44:56 -05:00
parent 3a4899e04a
commit fe40f3adf5
4 changed files with 15 additions and 8 deletions

View File

@@ -239,7 +239,8 @@ angular.module('StreamWidget', ['RestServices', 'Utilities', 'StreamListDefiniti
if (paths.length > 1 && /^\d+/.test(paths[paths.length - 1])) {
type = paths[paths.length - 2];
type = (type == 'inventories') ? 'inventory' : type.replace(/s$/,'');
defaultUrl += '?object1=' + type + '&object1_id=' + paths[paths.length - 1];
//defaultUrl += '?object1=' + type + '&object1__id=' +
defaultUrl += '?' + type + '__id=' + paths[paths.length - 1];
}
else if (paths.length > 1) {
type = paths[paths.length - 1];