svn commit: r1337664 - /ofbiz/trunk/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy

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

svn commit: r1337664 - /ofbiz/trunk/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy

doogie-3
Author: doogie
Date: Sat May 12 21:18:21 2012
New Revision: 1337664

URL: http://svn.apache.org/viewvc?rev=1337664&view=rev
Log:
DEPRECATION: applications/commonext: findByPrimaryKey variants replaced
with findOne

Modified:
    ofbiz/trunk/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy

Modified: ofbiz/trunk/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy?rev=1337664&r1=1337663&r2=1337664&view=diff
==============================================================================
--- ofbiz/trunk/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy (original)
+++ ofbiz/trunk/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy Sat May 12 21:18:21 2012
@@ -34,7 +34,7 @@
      errMsgList.add("Product Store not set!");
      showScreen = "message";
  }else{
-     facility = delegator.findByPrimaryKey("Facility", [facilityId : productStore.inventoryFacilityId]);
+     facility = delegator.findOne("Facility", [facilityId : productStore.inventoryFacilityId], false);
      webSite = EntityUtil.getFirst(delegator.findByAnd("WebSite", [productStoreId: productStore.productStoreId]));
     
      if(UtilValidate.isEmpty(facility)){