X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fsend_email.pm;h=9afc254b831eb3811eb33e32ff4de1470a9e9522;hb=674cb2d9d7105f4cc2871539b2e9f7088cdaa750;hp=41f04093e0074e8eaca0ef5909190dd4846f6ffa;hpb=7a7a0c736e3cfbd10b06151a93bf499d185d37d3;p=freeside.git diff --git a/FS/FS/part_export/send_email.pm b/FS/FS/part_export/send_email.pm index 41f04093e..9afc254b8 100644 --- a/FS/FS/part_export/send_email.pm +++ b/FS/FS/part_export/send_email.pm @@ -17,12 +17,13 @@ my %template_select = ( $templates{$_[0]}; }, option_values => sub { - %templates = (0 => '', + %templates = ( + 0 => '', map { $_->msgnum, $_->msgname } - qsearch({ table => 'msg_template', - hashref => { disabled => 1 }, - order_by => 'ORDER BY msgnum ASC' - }) + qsearch({ table => 'msg_template', + hashref => { disabled => '', }, + order_by => 'ORDER BY msgnum ASC' + }) ); sort keys (%templates); }, @@ -79,7 +80,7 @@ tie my %options, 'Tie::IxHash', ( ); %info = ( - 'svc' => [qw( svc_acct svc_broadband svc_phone svc_domain )], + 'svc' => [qw( svc_acct svc_hardware svc_broadband svc_phone svc_domain )], 'desc' => 'Send an email message', 'options' => \%options,