Merge pull request #302 from glyptodon/GUAC-1429

GUAC-1429: Return whole objects instead of identifiers to fix text/plain conversion error.
This commit is contained in:
Mike Jumper
2015-12-09 23:06:00 -08:00
9 changed files with 43 additions and 37 deletions

View File

@@ -145,8 +145,8 @@ angular.module('rest').factory('connectionGroupService', ['$injector',
})
// Set the identifier on the new connection group and clear the cache
.success(function connectionGroupCreated(identifier){
connectionGroup.identifier = identifier;
.success(function connectionGroupCreated(newConnectionGroup){
connectionGroup.identifier = newConnectionGroup.identifier;
cacheService.connections.removeAll();
});
}

View File

@@ -152,8 +152,8 @@ angular.module('rest').factory('connectionService', ['$injector',
})
// Set the identifier on the new connection and clear the cache
.success(function connectionCreated(identifier){
connection.identifier = identifier;
.success(function connectionCreated(newConnection){
connection.identifier = newConnection.identifier;
cacheService.connections.removeAll();
});
}