svn commit: r789406 - /ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy

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

svn commit: r789406 - /ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy

jaz-3
Author: jaz
Date: Mon Jun 29 18:30:40 2009
New Revision: 789406

URL: http://svn.apache.org/viewvc?rev=789406&view=rev
Log:
added variable initialization so the script no longer throws error messages with invalid orderIds

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy?rev=789406&r1=789405&r2=789406&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy Mon Jun 29 18:30:40 2009
@@ -53,11 +53,14 @@
 
 
 orderHeader = null;
+orderItems = null;
+orderAdjustments = null;
+
 if (orderId) {
     orderHeader = delegator.findByPrimaryKey("OrderHeader", [orderId : orderId]);
 }
 
-if (orderHeader) {
+if (orderHeader) {    
     // note these are overridden in the OrderViewWebSecure.groovy script if run
     context.hasPermission = true;
     context.canViewInternalDetails = true;