svn commit: r884763 - /ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy

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

svn commit: r884763 - /ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy

jleroux@apache.org
Author: jleroux
Date: Fri Nov 27 07:49:04 2009
New Revision: 884763

URL: http://svn.apache.org/viewvc?rev=884763&view=rev
Log:
Fix a bug related to r884761 and OFBIZ-3265

Modified:
    ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy

Modified: ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy?rev=884763&r1=884762&r2=884763&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy (original)
+++ ofbiz/branches/release09.04/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductInventoryItems.groovy Fri Nov 27 07:49:04 2009
@@ -21,7 +21,7 @@
 import org.ofbiz.product.inventory.InventoryWorker
 
 //If product is virtual gather summary data from variants
-if (product.isVirtual && "Y".equals(product.isVirtual)) {
+if (product && product.isVirtual && "Y".equals(product.isVirtual)) {
     //Get the virtual product feature types
     result = dispatcher.runSync("getProductFeaturesByType", [productId : productId, productFeatureApplTypeId : 'SELECTABLE_FEATURE']);
     featureTypeIds = result.productFeatureTypes;