diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-12-04 16:09:10 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-12-04 16:09:10 -0800 |
commit | 57bdfd4f7e70cab525c9a4bce7f26015517a81ed (patch) | |
tree | c348c033a761c6f55ff49258dcf859896241c4f2 /FS | |
parent | fcb230261cbd138c1869f6db4a443ac7ae2a98a1 (diff) |
fix to be how we always search for un-disabled things, RT#32230
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/part_export/send_email.pm | 12 |
1 files changed, 6 insertions, 6 deletions
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); }, |