[Create] Add object, not ID

Add domain object, and not its identifier, when suing
add method of composition from CopyTask, for consistency
with test expectations.
This commit is contained in:
Victor Woeltjen 2016-02-10 14:17:36 -08:00
parent 0f231838ec
commit cb53e1aaee

View File

@ -105,7 +105,7 @@ define(
*/
function addClonesToParent(self) {
return self.parent.getCapability("composition")
.add(self.firstClone.getId())
.add(self.firstClone)
.then(function (addedClone) {
return self.parent.getCapability("persistence").persist()
.then(function () {