From: Ivan Kohler Date: Fri, 5 Dec 2014 00:09:10 +0000 (-0800) Subject: fix to be how we always search for un-disabled things, RT#32230 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=57bdfd4f7e70cab525c9a4bce7f26015517a81ed fix to be how we always search for un-disabled things, RT#32230 --- diff --git a/FS/FS/part_export/send_email.pm b/FS/FS/part_export/send_email.pm index 3e5142260..537a562bb 100644 --- a/FS/FS/part_export/send_email.pm +++ b/FS/FS/part_export/send_email.pm @@ -17,13 +17,13 @@ my %template_select = ( $templates{$_[0]}; }, option_values => sub { - %templates = (0 => '', + %templates = ( + 0 => '', map { $_->msgnum, $_->msgname } - qsearch({ table => 'msg_template', - hashref => { disabled => { 'op' => '!=', - 'value' => 1 }}, - order_by => 'ORDER BY msgnum ASC' - }) + qsearch({ table => 'msg_template', + hashref => { disabled => '', }, + order_by => 'ORDER BY msgnum ASC' + }) ); sort keys (%templates); },