From ff4fd4692d282acca34b2be51420c2df481ca797 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sun, 23 Dec 2012 11:22:24 +0000 Subject: [PATCH] Fix a bug reported by Mark Schneider on user ML: >It looks like a wrong credit card number leads to the following error message in UI (tested with one-page checkout): > # --- > ... (INSERT on table 'ORDER_CONTACT_MECH' caused a violation of foreign key constraint 'ORDER_CMECH_CM' for key (10005). ... > > I would rather expect an error message like "invalid credit cartd number" instead. jleroux: the bug was actually double 1st: a last issue related to https://issues.apache.org/jira/browse/OFBIZ-5102 after https://issues.apache.org/jira/browse/OFBIZ-3883 2nd: the cardNumber was missing a creditcard class (jquery.validate.js messages) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1425452 13f79535-47bb-0310-9956-ffa450edef68 --- .../order/script/org/ofbiz/order/order/CheckoutServices.xml | 3 ++- .../webapp/ecommerce/order/OnePageCheckoutProcess.ftl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/order/script/org/ofbiz/order/order/CheckoutServices.xml b/applications/order/script/org/ofbiz/order/order/CheckoutServices.xml index b8ab52f528..137a3d3cc1 100644 --- a/applications/order/script/org/ofbiz/order/order/CheckoutServices.xml +++ b/applications/order/script/org/ofbiz/order/order/CheckoutServices.xml @@ -105,7 +105,7 @@ under the License. - + @@ -190,6 +190,7 @@ under the License. + diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl index 57eecee9f7..2421b2d067 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl @@ -380,7 +380,7 @@ under the License. - +