Author: jleroux Date: Mon Jun 26 08:15:35 2017 New Revision: 1799859 URL: http://svn.apache.org/viewvc?rev=1799859&view=rev Log: Fixed: Error running the simple-method: Error running groovy script (OFBIZ-9432)
Steps to reproduce the error: Add producs to cart (i.e. 2 x RoundGizmo) -> [Quick Checkout] -> Checkout Without Login: Quick Checkout -> Basic Information: fill in required fields -> Continue Error: unable to resolve class CartItemModifyException jleroux: Groovy needs the complete path to CartItemModifyException There are 2 cases, I have also removed the trailing semicolons Thanks: Daniel Coric for report Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/QuickAnonCustomerEvents.xml Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/QuickAnonCustomerEvents.xml URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/QuickAnonCustomerEvents.xml?rev=1799859&r1=1799858&r2=1799859&view=diff ============================================================================== --- ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/QuickAnonCustomerEvents.xml (original) +++ ofbiz/ofbiz-plugins/trunk/ecommerce/minilang/customer/QuickAnonCustomerEvents.xml Mon Jun 26 08:15:35 2017 @@ -507,9 +507,9 @@ under the License. <script>groovy: // clear out the login fields from the cart try { - if (cart!=null) cart.setAutoUserLogin(null, dispatcher); - } catch (CartItemModifyException e) { - Debug.logError(e, module); + if (cart!=null) cart.setAutoUserLogin(null, dispatcher) + } catch (org.apache.ofbiz.order.shoppingcart.CartItemModifyException e) { + Debug.logError(e, module) } </script> </if-not-empty> @@ -526,9 +526,9 @@ under the License. <script>groovy: // clear out the login fields from the cart try { - if (cart!=null) cart.setUserLogin(userLogin, dispatcher); - } catch (CartItemModifyException e) { - Debug.logError(e, module); + if (cart!=null) cart.setUserLogin(userLogin, dispatcher) + } catch (org.apache.ofbiz.order.shoppingcart.CartItemModifyException e) { + Debug.logError(e, module) } </script> </if-not-empty>