diff options
author | ivan <ivan> | 2006-11-14 03:30:10 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-11-14 03:30:10 +0000 |
commit | 6d891eee72cf63362601e0823c52c6e9a4aed826 (patch) | |
tree | f6d1d468b6e29f3946105a14b31e1cff59039d65 | |
parent | fed0c6bf093ae154d17a4075e254a69be68f3d22 (diff) |
Tie::IxHash data disappears when sent with Storable
-rw-r--r-- | FS/FS/Misc.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/FS/FS/Misc.pm b/FS/FS/Misc.pm index 6024b832a..97ff8ed61 100644 --- a/FS/FS/Misc.pm +++ b/FS/FS/Misc.pm @@ -407,17 +407,18 @@ sub state_label { =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 @@ sub card_types { "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 |