summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-06-19 09:12:56 (EDT)
committerStephan Born2013-08-29 04:52:22 (EDT)
commit5ca048616ff2fdf76f33b1fc7b31521b486ef8d7 (patch)
tree937927639adeeb4222ad51c6e3f784d40d06c35e
parent0ccceba009a410235aa3781f6e550d4eb63c2008 (diff)
downloadorg.eclipse.stardust.ui.web-5ca048616ff2fdf76f33b1fc7b31521b486ef8d7.zip
org.eclipse.stardust.ui.web-5ca048616ff2fdf76f33b1fc7b31521b486ef8d7.tar.gz
org.eclipse.stardust.ui.web-5ca048616ff2fdf76f33b1fc7b31521b486ef8d7.tar.bz2
Jira-ID: CRNT-29342
Added code to get Model using data.getModelOID when data.getReference() returns null in XPathCacheManager git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/ui.web@65626 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Sidharth Singh <sidharth.singh@sungard.com>
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/XPathCacheManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/XPathCacheManager.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/XPathCacheManager.java
index 8cf961f..c6a4ae1 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/XPathCacheManager.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/utils/XPathCacheManager.java
@@ -282,6 +282,12 @@ public class XPathCacheManager
{
refModel = ModelCache.findModelCache().getModel(ref.getModelOid());
}
+ else
+ {
+ // When Provider Model data is using in consumer Model, get the Model using
+ // data Model Id (as data itself is Provider Model data)
+ refModel = ModelCache.findModelCache().getModel(data.getModelOID());
+ }
return refModel;
}