svn commit: r660220 - /ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductFeatures.groovy

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

svn commit: r660220 - /ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductFeatures.groovy

jonesde
Author: jonesde
Date: Mon May 26 08:46:07 2008
New Revision: 660220

URL: http://svn.apache.org/viewvc?rev=660220&view=rev
Log:
Small change, taking it to the next level of reducing code; btw, this could all be done in entity-* ops really easily, but still a nice example

Modified:
    ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductFeatures.groovy

Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductFeatures.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductFeatures.groovy?rev=660220&r1=660219&r2=660220&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductFeatures.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductFeatures.groovy Mon May 26 08:46:07 2008
@@ -19,19 +19,14 @@
 
 import org.ofbiz.entity.*;
 
-productFeatureAndAppls = delegator.findByAnd('ProductFeatureAndAppl',
+context.productFeatureAndAppls = delegator.findByAnd('ProductFeatureAndAppl',
         ['productId' : productId],
         ['sequenceNum', 'productFeatureApplTypeId', 'productFeatureTypeId', 'description']);
-context.productFeatureAndAppls = productFeatureAndAppls;
 
-productFeatureCategories = delegator.findAll('ProductFeatureCategory', ['description']);
-context.productFeatureCategories = productFeatureCategories;
+context.productFeatureCategories = delegator.findAll('ProductFeatureCategory', ['description']);
 
-productFeatureApplTypes = delegator.findAll('ProductFeatureApplType', ['description']);
-context.productFeatureApplTypes = productFeatureApplTypes;
+context.productFeatureApplTypes = delegator.findAll('ProductFeatureApplType', ['description']);
 
-productFeatureGroups = delegator.findAll('ProductFeatureGroup', ['description']);
-context.productFeatureGroups = productFeatureGroups;
-
-productFeatureTypes = delegator.findAll('ProductFeatureType', ['description']);
-context.productFeatureTypes = productFeatureTypes;
+context.productFeatureGroups = delegator.findAll('ProductFeatureGroup', ['description']);
+
+context.productFeatureTypes = delegator.findAll('ProductFeatureType', ['description']);