[open-ils-commits] r19713 - branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Circ (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 11 16:51:46 EST 2011
Author: erickson
Date: 2011-03-11 16:51:40 -0500 (Fri, 11 Mar 2011)
New Revision: 19713
Modified:
branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/CreditCard.pm
Log:
only append street2 to CC payment address if no address is provided by the caller
Modified: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/CreditCard.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/CreditCard.pm 2011-03-11 21:51:16 UTC (rev 19712)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/CreditCard.pm 2011-03-11 21:51:40 UTC (rev 19713)
@@ -201,9 +201,11 @@
# Especially for the following fields, do we need to support different
# mapping of fields for different payment processors, particularly ones
# in other countries?
- $content{address} ||= $patron->mailing_address->street1;
- $content{address} .= ", " . $patron->mailing_address->street2
- if $patron->mailing_address->street2;
+ if(!$content{address}) {
+ $content{address} = $patron->mailing_address->street1;
+ $content{address} .= ", " . $patron->mailing_address->street2
+ if $patron->mailing_address->street2;
+ }
$content{city} ||= $patron->mailing_address->city;
$content{state} ||= $patron->mailing_address->state;
More information about the open-ils-commits
mailing list