X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Facct_sql.pm;h=ffe39caa5290876d12d551539a0ad0eae7922f57;hp=e5e9d7e389cb67c3ab48defae834c11592aa3421;hb=6b06edae106b8391da872e6e60a48dcf9b12158a;hpb=25180d667effd00ae7c51ca8a51c806ece049547 diff --git a/FS/FS/part_export/acct_sql.pm b/FS/FS/part_export/acct_sql.pm index e5e9d7e38..ffe39caa5 100644 --- a/FS/FS/part_export/acct_sql.pm +++ b/FS/FS/part_export/acct_sql.pm @@ -3,13 +3,14 @@ use base qw( FS::part_export::sql_Common ); use strict; use vars qw( %info ); +use Tie::IxHash; use FS::Record; #qw(qsearchs); -my $options = { %{__PACKAGE__->sql_options} };#a new hashref so we don't pollute -$options->{'crypt'} = { label => 'Password encryption', - type=>'select', options=>[qw(crypt md5 sha1_base64)], - default=>'crypt', - }; +tie my %options, 'Tie::IxHash', %{__PACKAGE__->sql_options}; +$options{'crypt'} = { label => 'Password encryption', + type=>'select', options=>[qw(crypt md5 sha1_base64)], + default=>'crypt', + }; tie my %vpopmail_map, 'Tie::IxHash', 'pw_name' => 'username', @@ -62,7 +63,7 @@ my $postfix_native_mailbox_map = 'svc' => 'svc_acct', 'desc' => 'Real-time export of accounts to SQL databases '. '(vpopmail, Postfix+Courier IMAP, others?)', - 'options' => $options, + 'options' => \%options, 'nodomain' => '', 'notes' => <