You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2010/05/25 11:53:56 UTC

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

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)) {