You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2012/05/12 23:22:07 UTC

svn commit: r1337685 - /ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/catalog/Category.groovy

Author: doogie
Date: Sat May 12 21:22:06 2012
New Revision: 1337685

URL: http://svn.apache.org/viewvc?rev=1337685&view=rev
Log:
DEPRECATION: specialpurpose/webpos: findByPrimaryKey variants replaced with findOne

Modified:
    ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/catalog/Category.groovy

Modified: ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/catalog/Category.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/catalog/Category.groovy?rev=1337685&r1=1337684&r2=1337685&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/catalog/Category.groovy (original)
+++ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/catalog/Category.groovy Sat May 12 21:22:06 2012
@@ -36,7 +36,7 @@ if (!(productCategoryId) && request.getA
     productCategoryId = request.getAttribute("topCategoryId");
 }
 
-category = delegator.findByPrimaryKeyCache("ProductCategory", [productCategoryId : productCategoryId]);
+category = delegator.findOne("ProductCategory", [productCategoryId : productCategoryId], true);
 if (category) {
     if (category.detailScreen) {
         detailScreen = category.detailScreen;