[freeside-commits] freeside/FS/FS Misc.pm,1.16,1.17
Ivan,,,
ivan at wavetail.420.am
Mon Nov 13 19:30:12 PST 2006
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv15623
Modified Files:
Misc.pm
Log Message:
Tie::IxHash data disappears when sent with Storable
Index: Misc.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Misc.pm,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- Misc.pm 14 Nov 2006 03:16:26 -0000 1.16
+++ Misc.pm 14 Nov 2006 03:30:10 -0000 1.17
@@ -407,17 +407,18 @@
=item card_types
-Returns a hash reference of the accepted credit card types.
+Returns a hash reference of the accepted credit card types. Keys are shorter
+identifiers and values are the longer strings used by the system (see
+L<Business::CreditCard).
=cut
#$conf from above
-use Tie::IxHash;
sub card_types {
my $conf = new FS::Conf;
- tie my %card_types, 'Tie::IxHash',
+ my %card_types = (
#displayname #value (Business::CreditCard)
"VISA" => "VISA card",
"MasterCard" => "MasterCard",
@@ -429,7 +430,7 @@
"BankCard" => "BankCard",
"Switch" => "Switch",
"Solo" => "Solo",
- ;
+ );
my @conf_card_types = grep { ! /^\s*$/ } $conf->config('card-types');
if ( @conf_card_types ) {
#perhaps the hash is backwards for this, but this way works better for
More information about the freeside-commits
mailing list