fix to be how we always search for un-disabled things, RT#32230
[freeside.git] / FS / FS / part_export / send_email.pm
index 3e51422..537a562 100644 (file)
@@ -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);
   },