svn commit: r660782 - /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: r660782 - /ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductFeatures.groovy

jonesde
Author: jonesde
Date: Tue May 27 19:04:57 2008
New Revision: 660782

URL: http://svn.apache.org/viewvc?rev=660782&view=rev
Log:
Changed to use findList for everything and to use the new EntityCondition.makeCondition too

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=660782&r1=660781&r2=660782&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 Tue May 27 19:04:57 2008
@@ -17,16 +17,16 @@
  * under the License.
  */
 
-import org.ofbiz.entity.*;
+import org.ofbiz.entity.condition.*;
 
-context.productFeatureAndAppls = delegator.findByAnd('ProductFeatureAndAppl',
-        ['productId' : productId],
-        ['sequenceNum', 'productFeatureApplTypeId', 'productFeatureTypeId', 'description']);
+context.productFeatureAndAppls = delegator.findList('ProductFeatureAndAppl',
+        EntityCondition.makeCondition(['productId' : productId]), null,
+        ['sequenceNum', 'productFeatureApplTypeId', 'productFeatureTypeId', 'description'], null, false);
 
-context.productFeatureCategories = delegator.findAll('ProductFeatureCategory', ['description']);
+context.productFeatureCategories = delegator.findList('ProductFeatureCategory', null, null, ['description'], null, false);
 
-context.productFeatureApplTypes = delegator.findAll('ProductFeatureApplType', ['description']);
+context.productFeatureApplTypes = delegator.findList('ProductFeatureApplType', null, null, ['description'], null, true);
 
-context.productFeatureGroups = delegator.findAll('ProductFeatureGroup', ['description']);
+context.productFeatureGroups = delegator.findList('ProductFeatureGroup', null, null, ['description'], null, false);
 
-context.productFeatureTypes = delegator.findAll('ProductFeatureType', ['description']);
+context.productFeatureTypes = delegator.findList('ProductFeatureType', null, null, ['description'], null, true);