From 461cc59b3e5f1f20e5571f8e49902520f22ead52 Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 3 Dec 2015 18:41:13 -0800 Subject: [PATCH] #338 changed isLink check to check whether location is set --- platform/entanglement/src/services/CopyTask.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/entanglement/src/services/CopyTask.js b/platform/entanglement/src/services/CopyTask.js index 57a98cdf02..770b21f27a 100644 --- a/platform/entanglement/src/services/CopyTask.js +++ b/platform/entanglement/src/services/CopyTask.js @@ -53,8 +53,8 @@ define( parent.getModel().composition.push(child.getId()); - //Check if the object being composed is a link - if (!child.getCapability("location").isLink()) { + //If a location is not specified, set it. + if (!child.getModel().location) { child.getModel().location = parent.getId(); } }