[open-ils-commits] r19714 - trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 11 16:57:27 EST 2011
Author: erickson
Date: 2011-03-11 16:57:21 -0500 (Fri, 11 Mar 2011)
New Revision: 19714
Modified:
trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CreditCard.pm
Log:
only append street2 to CC payment address if no address is provided by the caller
Modified: trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CreditCard.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CreditCard.pm 2011-03-11 21:51:40 UTC (rev 19713)
+++ trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CreditCard.pm 2011-03-11 21:57:21 UTC (rev 19714)
@@ -204,9 +204,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