adding export to read mailbox status information, RT#15987
authorivan <ivan>
Sun, 15 Jan 2012 04:14:06 +0000 (04:14 +0000)
committerivan <ivan>
Sun, 15 Jan 2012 04:14:06 +0000 (04:14 +0000)
FS/FS/part_export/acct_sql.pm
FS/FS/part_export/acct_sql_status.pm

index 0c0b4ac..e5e9d7e 100644 (file)
@@ -5,7 +5,7 @@ use strict;
 use vars qw( %info );
 use FS::Record; #qw(qsearchs);
 
 use vars qw( %info );
 use FS::Record; #qw(qsearchs);
 
-my $options = __PACKAGE__->sql_options;
+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',
 $options->{'crypt'} = { label => 'Password encryption',
                         type=>'select', options=>[qw(crypt md5 sha1_base64)],
                         default=>'crypt',
index 5ad462e..bcc1e01 100644 (file)
@@ -5,11 +5,12 @@ use strict;
 use warnings;
 use vars qw( %info );
 
 use warnings;
 use vars qw( %info );
 
-my $options = __PACKAGE__->sql_options;
+my $options = { %{__PACKAGE__->sql_options} };#a new hashref so we don't pollute
 delete $options->{$_} for qw( table schema static primary_key );
 
 %info = (
   'svc'      => 'svc_acct',
 delete $options->{$_} for qw( table schema static primary_key );
 
 %info = (
   'svc'      => 'svc_acct',
+  'desc'     => 'Mailbox status information from SQL',
   'options'  => $options,
   'nodomain' => '',
   'notes'    => <<END
   'options'  => $options,
   'nodomain' => '',
   'notes'    => <<END