svn commit: r947988 - /ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r947988 - /ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy

jleroux@apache.org
Author: jleroux
Date: Tue May 25 09:53:56 2010
New Revision: 947988

URL: http://svn.apache.org/viewvc?rev=947988&view=rev
Log:
Fix a bug due to multi-tenant introduction. I guess this bug appears only if you use the multi-tenant mode.

Modified:
    ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy

Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy?rev=947988&r1=947987&r2=947988&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy Tue May 25 09:53:56 2010
@@ -26,8 +26,11 @@ name = parameters.name;
 location = parameters.location;
 type = parameters.type;
 uniqueId = parameters.uniqueId;
-
-aif = ArtifactInfoFactory.getArtifactInfoFactory(delegator.getDelegatorName());
+delegatorName = delegator.getDelegatorName()
+if (delegatorName.contains("default#")) {
+    delegatorName = "default";
+}
+aif = ArtifactInfoFactory.getArtifactInfoFactory(delegatorName);
 context.aif = aif;
 artifactInfo = null;
 if ("search".equals(parameters.findType)) {