Author: jaz
Date: Mon Jun 29 18:30:40 2009
New Revision: 789406
URL:
http://svn.apache.org/viewvc?rev=789406&view=revLog:
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;