Administrator
|
Marco,
Have you seen Adam's remark about long lines splitted. I guess you are using a tool for format those lines. Anyway we prefer to keep them reasonnably long. At least I agree with Adam we should not uselessly change already long lines Thanks Jacques > Author: mrisaliti > Date: Tue Jan 18 22:20:48 2011 > New Revision: 1060599 > > URL: http://svn.apache.org/viewvc?rev=1060599&view=rev > Log: > Internationalization of ServiceUtil.returnSuccess, ServiceUtil.returnFailure, ServiceUtil.returnError (OFBIZ-4091) > > Modified: > ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml > ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java > > Modified: ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml > URL: > http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml?rev=1060599&r1=1060598&r2=1060599&view=diff > ============================================================================== > --- ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml (original) > +++ ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml Tue Jan 18 22:20:48 2011 > @@ -9470,6 +9470,10 @@ > <value xml:lang="en">Exception in calling SagePayPaymentAuthorisation: ${errorString}</value> > <value xml:lang="it">Eccezione durante la chiamata a SagePayPaymentAuthorisation: ${errorString}</value> > </property> > + <property key="AccountingSagePayOrderPaymenPreferenceIsNull"> > + <value xml:lang="en">OrderPaymentPreference for order : ${orderId } is null: ${orderPaymentPreference}</value> > + <value xml:lang="it">Preferenze pagamento per l'ordine : ${orderId } è nullo: ${orderPaymentPreference}</value> > + </property> > <property key="AccountingSagePayPaymentRefundException"> > <value xml:lang="en">Exception in calling SagePayPaymentRefund: ${errorString}</value> > <value xml:lang="it">Eccezione durante la chiamata a SagePayPaymentRefund: ${errorString}</value> > > Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java > URL: > http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java?rev=1060599&r1=1060598&r2=1060599&view=diff > ============================================================================== > --- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java (original) > +++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java Tue Jan 18 > 22:20:48 2011 > @@ -153,11 +153,14 @@ public class SagePayPaymentServices { > Debug.logInfo("SagePay - Entered ccAuth", module); > Debug.logInfo("SagePay ccAuth context : " + context, module); > Map<String, Object> response = null; > + String orderId = (String) context.get("orderId"); > Locale locale = (Locale) context.get("locale"); > GenericValue orderPaymentPreference = (GenericValue) context.get("orderPaymentPreference"); > + > if (orderPaymentPreference == null) { > response = ServiceUtil.returnError(UtilProperties.getMessage(resource, > - "AccountingProblemGettingOrderPaymentPreferences", locale)); > + "AccountingSagePayOrderPaymenPreferenceIsNull", > + UtilMisc.toMap("orderId", orderId, "orderPaymentPreference", orderPaymentPreference), locale)); > } else { > response = processCardAuthorisationPayment(dctx, context); > } > > |
Ok, I will use long lines but a lot of sources having long lines splitted.
This is the standard formatting preference in use by Eclipse but not by OFBiz standards. Thanks Marco Il giorno 18/gen/2011, alle ore 23.30, Jacques Le Roux ha scritto: > Marco, > > Have you seen Adam's remark about long lines splitted. I guess you are using a tool for format those lines. Anyway we prefer to keep > them reasonnably long. At least I agree with Adam we should not uselessly change already long lines > > Thanks > > Jacques > >> Author: mrisaliti >> Date: Tue Jan 18 22:20:48 2011 >> New Revision: 1060599 >> >> URL: http://svn.apache.org/viewvc?rev=1060599&view=rev >> Log: >> Internationalization of ServiceUtil.returnSuccess, ServiceUtil.returnFailure, ServiceUtil.returnError (OFBIZ-4091) >> >> Modified: >> ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml >> ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java >> >> Modified: ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml?rev=1060599&r1=1060598&r2=1060599&view=diff >> ============================================================================== >> --- ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml (original) >> +++ ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml Tue Jan 18 22:20:48 2011 >> @@ -9470,6 +9470,10 @@ >> <value xml:lang="en">Exception in calling SagePayPaymentAuthorisation: ${errorString}</value> >> <value xml:lang="it">Eccezione durante la chiamata a SagePayPaymentAuthorisation: ${errorString}</value> >> </property> >> + <property key="AccountingSagePayOrderPaymenPreferenceIsNull"> >> + <value xml:lang="en">OrderPaymentPreference for order : ${orderId } is null: ${orderPaymentPreference}</value> >> + <value xml:lang="it">Preferenze pagamento per l'ordine : ${orderId } è nullo: ${orderPaymentPreference}</value> >> + </property> >> <property key="AccountingSagePayPaymentRefundException"> >> <value xml:lang="en">Exception in calling SagePayPaymentRefund: ${errorString}</value> >> <value xml:lang="it">Eccezione durante la chiamata a SagePayPaymentRefund: ${errorString}</value> >> >> Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java?rev=1060599&r1=1060598&r2=1060599&view=diff >> ============================================================================== >> --- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java (original) >> +++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java Tue Jan 18 >> 22:20:48 2011 >> @@ -153,11 +153,14 @@ public class SagePayPaymentServices { >> Debug.logInfo("SagePay - Entered ccAuth", module); >> Debug.logInfo("SagePay ccAuth context : " + context, module); >> Map<String, Object> response = null; >> + String orderId = (String) context.get("orderId"); >> Locale locale = (Locale) context.get("locale"); >> GenericValue orderPaymentPreference = (GenericValue) context.get("orderPaymentPreference"); >> + >> if (orderPaymentPreference == null) { >> response = ServiceUtil.returnError(UtilProperties.getMessage(resource, >> - "AccountingProblemGettingOrderPaymentPreferences", locale)); >> + "AccountingSagePayOrderPaymenPreferenceIsNull", >> + UtilMisc.toMap("orderId", orderId, "orderPaymentPreference", orderPaymentPreference), locale)); >> } else { >> response = processCardAuthorisationPayment(dctx, context); >> } >> >> > > |
Marco,
You can change the line length in Eclipse. I set mine to 300 characters. -Adrian On 1/18/2011 2:38 PM, [hidden email] wrote: > Ok, I will use long lines but a lot of sources having long lines splitted. > This is the standard formatting preference in use by Eclipse but not by OFBiz standards. > > Thanks > Marco > > Il giorno 18/gen/2011, alle ore 23.30, Jacques Le Roux ha scritto: > >> Marco, >> >> Have you seen Adam's remark about long lines splitted. I guess you are using a tool for format those lines. Anyway we prefer to keep >> them reasonnably long. At least I agree with Adam we should not uselessly change already long lines >> >> Thanks >> >> Jacques >> >>> Author: mrisaliti >>> Date: Tue Jan 18 22:20:48 2011 >>> New Revision: 1060599 >>> >>> URL: http://svn.apache.org/viewvc?rev=1060599&view=rev >>> Log: >>> Internationalization of ServiceUtil.returnSuccess, ServiceUtil.returnFailure, ServiceUtil.returnError (OFBIZ-4091) >>> >>> Modified: >>> ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml >>> ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java >>> >>> Modified: ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml >>> URL: >>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml?rev=1060599&r1=1060598&r2=1060599&view=diff >>> ============================================================================== >>> --- ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml (original) >>> +++ ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml Tue Jan 18 22:20:48 2011 >>> @@ -9470,6 +9470,10 @@ >>> <value xml:lang="en">Exception in calling SagePayPaymentAuthorisation: ${errorString}</value> >>> <value xml:lang="it">Eccezione durante la chiamata a SagePayPaymentAuthorisation: ${errorString}</value> >>> </property> >>> +<property key="AccountingSagePayOrderPaymenPreferenceIsNull"> >>> +<value xml:lang="en">OrderPaymentPreference for order : ${orderId } is null: ${orderPaymentPreference}</value> >>> +<value xml:lang="it">Preferenze pagamento per l'ordine : ${orderId } è nullo: ${orderPaymentPreference}</value> >>> +</property> >>> <property key="AccountingSagePayPaymentRefundException"> >>> <value xml:lang="en">Exception in calling SagePayPaymentRefund: ${errorString}</value> >>> <value xml:lang="it">Eccezione durante la chiamata a SagePayPaymentRefund: ${errorString}</value> >>> >>> Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java >>> URL: >>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java?rev=1060599&r1=1060598&r2=1060599&view=diff >>> ============================================================================== >>> --- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java (original) >>> +++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java Tue Jan 18 >>> 22:20:48 2011 >>> @@ -153,11 +153,14 @@ public class SagePayPaymentServices { >>> Debug.logInfo("SagePay - Entered ccAuth", module); >>> Debug.logInfo("SagePay ccAuth context : " + context, module); >>> Map<String, Object> response = null; >>> + String orderId = (String) context.get("orderId"); >>> Locale locale = (Locale) context.get("locale"); >>> GenericValue orderPaymentPreference = (GenericValue) context.get("orderPaymentPreference"); >>> + >>> if (orderPaymentPreference == null) { >>> response = ServiceUtil.returnError(UtilProperties.getMessage(resource, >>> - "AccountingProblemGettingOrderPaymentPreferences", locale)); >>> + "AccountingSagePayOrderPaymenPreferenceIsNull", >>> + UtilMisc.toMap("orderId", orderId, "orderPaymentPreference", orderPaymentPreference), locale)); >>> } else { >>> response = processCardAuthorisationPayment(dctx, context); >>> } >>> >>> >> >> > > |
Administrator
|
In reply to this post by risalitim@gmail.com
What Adam asked is especially to no cut existing long lines... This makes sense because it's easier to read patches...
Thanks Jacques From: <[hidden email]> > Ok, I will use long lines but a lot of sources having long lines splitted. > This is the standard formatting preference in use by Eclipse but not by OFBiz standards. > > Thanks > Marco > > Il giorno 18/gen/2011, alle ore 23.30, Jacques Le Roux ha scritto: > >> Marco, >> >> Have you seen Adam's remark about long lines splitted. I guess you are using a tool for format those lines. Anyway we prefer to >> keep >> them reasonnably long. At least I agree with Adam we should not uselessly change already long lines >> >> Thanks >> >> Jacques >> >>> Author: mrisaliti >>> Date: Tue Jan 18 22:20:48 2011 >>> New Revision: 1060599 >>> >>> URL: http://svn.apache.org/viewvc?rev=1060599&view=rev >>> Log: >>> Internationalization of ServiceUtil.returnSuccess, ServiceUtil.returnFailure, ServiceUtil.returnError (OFBIZ-4091) >>> >>> Modified: >>> ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml >>> ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java >>> >>> Modified: ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml >>> URL: >>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml?rev=1060599&r1=1060598&r2=1060599&view=diff >>> ============================================================================== >>> --- ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml (original) >>> +++ ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml Tue Jan 18 22:20:48 2011 >>> @@ -9470,6 +9470,10 @@ >>> <value xml:lang="en">Exception in calling SagePayPaymentAuthorisation: ${errorString}</value> >>> <value xml:lang="it">Eccezione durante la chiamata a SagePayPaymentAuthorisation: ${errorString}</value> >>> </property> >>> + <property key="AccountingSagePayOrderPaymenPreferenceIsNull"> >>> + <value xml:lang="en">OrderPaymentPreference for order : ${orderId } is null: ${orderPaymentPreference}</value> >>> + <value xml:lang="it">Preferenze pagamento per l'ordine : ${orderId } è nullo: ${orderPaymentPreference}</value> >>> + </property> >>> <property key="AccountingSagePayPaymentRefundException"> >>> <value xml:lang="en">Exception in calling SagePayPaymentRefund: ${errorString}</value> >>> <value xml:lang="it">Eccezione durante la chiamata a SagePayPaymentRefund: ${errorString}</value> >>> >>> Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java >>> URL: >>> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java?rev=1060599&r1=1060598&r2=1060599&view=diff >>> ============================================================================== >>> --- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java (original) >>> +++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java Tue Jan 18 >>> 22:20:48 2011 >>> @@ -153,11 +153,14 @@ public class SagePayPaymentServices { >>> Debug.logInfo("SagePay - Entered ccAuth", module); >>> Debug.logInfo("SagePay ccAuth context : " + context, module); >>> Map<String, Object> response = null; >>> + String orderId = (String) context.get("orderId"); >>> Locale locale = (Locale) context.get("locale"); >>> GenericValue orderPaymentPreference = (GenericValue) context.get("orderPaymentPreference"); >>> + >>> if (orderPaymentPreference == null) { >>> response = ServiceUtil.returnError(UtilProperties.getMessage(resource, >>> - "AccountingProblemGettingOrderPaymentPreferences", locale)); >>> + "AccountingSagePayOrderPaymenPreferenceIsNull", >>> + UtilMisc.toMap("orderId", orderId, "orderPaymentPreference", orderPaymentPreference), locale)); >>> } else { >>> response = processCardAuthorisationPayment(dctx, context); >>> } >>> >>> >> >> > > |
On 01/18/2011 04:57 PM, Jacques Le Roux wrote:
> What Adam asked is especially to no cut existing long lines... This > makes sense because it's easier to read patches... Let's say we set the line length to 100. Lines then get split. Now, a change comes in, that adds or removes parameters, or adds casting, etc. The line then has to be resplit. That is very ugly. My terminal width is at X characters. Your terminal width is at Y characters. Which width is correct? Time goes by, I upgrade my hardware. Now my width is at X1. I get older, my eyesight gets worse. I now have to use a larger font, so can't see as many characters. The width gets reduced. |
In reply to this post by Jacques Le Roux
On 01/18/2011 04:30 PM, Jacques Le Roux wrote:
> Marco, > > Have you seen Adam's remark about long lines splitted. I guess you are > using a tool for format those lines. Anyway we prefer to keep > them reasonnably long. At least I agree with Adam we should not > uselessly change already long lines > > Thanks > > Jacques Please don't summarize. Your summary left out a very important comment, the fact that the $orderId is no longer being printed in the message. And anyone who is putting commits into ofbiz should be subscribed to this list; this list is where buildbot messages are sent, and discussions about commits happen. > >> Author: mrisaliti >> Date: Tue Jan 18 22:20:48 2011 >> New Revision: 1060599 >> >> URL: http://svn.apache.org/viewvc?rev=1060599&view=rev >> Log: >> Internationalization of ServiceUtil.returnSuccess, >> ServiceUtil.returnFailure, ServiceUtil.returnError (OFBIZ-4091) >> >> Modified: >> ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml >> ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java >> >> >> Modified: >> ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml?rev=1060599&r1=1060598&r2=1060599&view=diff >> >> ============================================================================== >> >> --- ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml >> (original) >> +++ ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml >> Tue Jan 18 22:20:48 2011 >> @@ -9470,6 +9470,10 @@ >> <value xml:lang="en">Exception in calling SagePayPaymentAuthorisation: >> ${errorString}</value> >> <value xml:lang="it">Eccezione durante la chiamata a >> SagePayPaymentAuthorisation: ${errorString}</value> >> </property> >> + <property key="AccountingSagePayOrderPaymenPreferenceIsNull"> >> + <value xml:lang="en">OrderPaymentPreference for order : ${orderId } >> is null: ${orderPaymentPreference}</value> >> + <value xml:lang="it">Preferenze pagamento per l'ordine : ${orderId } >> è nullo: ${orderPaymentPreference}</value> >> + </property> >> <property key="AccountingSagePayPaymentRefundException"> >> <value xml:lang="en">Exception in calling SagePayPaymentRefund: >> ${errorString}</value> >> <value xml:lang="it">Eccezione durante la chiamata a >> SagePayPaymentRefund: ${errorString}</value> >> >> Modified: >> ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java >> >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java?rev=1060599&r1=1060598&r2=1060599&view=diff >> >> ============================================================================== >> >> --- >> ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java >> (original) >> +++ >> ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java >> Tue Jan 18 >> 22:20:48 2011 >> @@ -153,11 +153,14 @@ public class SagePayPaymentServices { >> Debug.logInfo("SagePay - Entered ccAuth", module); >> Debug.logInfo("SagePay ccAuth context : " + context, module); >> Map<String, Object> response = null; >> + String orderId = (String) context.get("orderId"); >> Locale locale = (Locale) context.get("locale"); >> GenericValue orderPaymentPreference = (GenericValue) >> context.get("orderPaymentPreference"); >> + >> if (orderPaymentPreference == null) { >> response = ServiceUtil.returnError(UtilProperties.getMessage(resource, >> - "AccountingProblemGettingOrderPaymentPreferences", locale)); >> + "AccountingSagePayOrderPaymenPreferenceIsNull", >> + UtilMisc.toMap("orderId", orderId, "orderPaymentPreference", >> orderPaymentPreference), locale)); >> } else { >> response = processCardAuthorisationPayment(dctx, context); >> } >> >> > > |
In reply to this post by Jacques Le Roux
On 01/18/2011 04:20 PM, [hidden email] wrote:
> Author: mrisaliti > Date: Tue Jan 18 22:20:48 2011 > New Revision: 1060599 > > URL: http://svn.apache.org/viewvc?rev=1060599&view=rev > Log: > Internationalization of ServiceUtil.returnSuccess, ServiceUtil.returnFailure, ServiceUtil.returnError (OFBIZ-4091) Bad. This change is not about internationalization. It's about a fix on a previous commit. Plus, all your commits are using the exact same commit message. If there were all committed as one single commit, that would be fine. If you are splitting up a large patch into several separate commits, then each commit message should describe the changes it does(the files it modifies). > > Modified: > ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml > ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java > > Modified: ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml > URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml?rev=1060599&r1=1060598&r2=1060599&view=diff > ============================================================================== > --- ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml (original) > +++ ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml Tue Jan 18 22:20:48 2011 > @@ -9470,6 +9470,10 @@ > <value xml:lang="en">Exception in calling SagePayPaymentAuthorisation: ${errorString}</value> > <value xml:lang="it">Eccezione durante la chiamata a SagePayPaymentAuthorisation: ${errorString}</value> > </property> > +<property key="AccountingSagePayOrderPaymenPreferenceIsNull"> > +<value xml:lang="en">OrderPaymentPreference for order : ${orderId } is null: ${orderPaymentPreference}</value> > +<value xml:lang="it">Preferenze pagamento per l'ordine : ${orderId } è nullo: ${orderPaymentPreference}</value> > +</property> > <property key="AccountingSagePayPaymentRefundException"> > <value xml:lang="en">Exception in calling SagePayPaymentRefund: ${errorString}</value> > <value xml:lang="it">Eccezione durante la chiamata a SagePayPaymentRefund: ${errorString}</value> > > Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java > URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java?rev=1060599&r1=1060598&r2=1060599&view=diff > ============================================================================== > --- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java (original) > +++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/sagepay/SagePayPaymentServices.java Tue Jan 18 22:20:48 2011 > @@ -153,11 +153,14 @@ public class SagePayPaymentServices { > Debug.logInfo("SagePay - Entered ccAuth", module); > Debug.logInfo("SagePay ccAuth context : " + context, module); > Map<String, Object> response = null; > + String orderId = (String) context.get("orderId"); > Locale locale = (Locale) context.get("locale"); > GenericValue orderPaymentPreference = (GenericValue) context.get("orderPaymentPreference"); > + > if (orderPaymentPreference == null) { > response = ServiceUtil.returnError(UtilProperties.getMessage(resource, > - "AccountingProblemGettingOrderPaymentPreferences", locale)); > + "AccountingSagePayOrderPaymenPreferenceIsNull", > + UtilMisc.toMap("orderId", orderId, "orderPaymentPreference", orderPaymentPreference), locale)); > } else { > response = processCardAuthorisationPayment(dctx, context); > } > > |
Free forum by Nabble | Edit this page |