Author: ashish
Date: Sat Oct 18 06:17:49 2014
New Revision: 1632733

URL: http://svn.apache.org/r1632733
Log:
Applied bug fix from jira issue - OFBIZ-5632 - Changing Visual theme in Order 
manager results in error message. 
===========================================================
The reported issue has been observed in the order manager application. It 
happens when there's no shopping cart in the session.

Steps to test -
1. Try changing visual theme in the order manager application.

Observations -
1. Returns ERROR MESSAGE - org.ofbiz.widget.screen.ScreenRenderException: Error 
rendering screen 
component://order/widget/ordermgr/OrderEntryOrderScreens.xml#quickFinalizeOrder:
 java.lang.IllegalArgumentException: Error running script at location 
[component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutPayment.groovy]:
 java.lang.NullPointerException: Cannot invoke method getRelated() on null 
object (Error running script at location 
[component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutPayment.groovy]:
 java.lang.NullPointerException: Cannot invoke method getRelated() on null 
object)

Thanks.
===========================================================

Thanks Vyom for reporting the issue and Thanks Pranay for providing the patch 
for the same. 

Modified:
    ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml

Modified: ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml?rev=1632733&r1=1632732&r2=1632733&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
(original)
+++ ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml Sat 
Oct 18 06:17:49 2014
@@ -129,7 +129,7 @@ under the License.
     <!-- Visual theme mapping -->
     <request-map uri="ListVisualThemes">
         <security https="true" auth="true"/>
-        <response name="success" type="view" value="ListVisualThemes"/>
+        <response name="success" type="view" value="ListVisualThemes" 
save-last-view="true"/>
     </request-map>
 
     <request-map uri="main">


Reply via email to