From bf6644780bf1036f5eca4d191caf7c141447dd47 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 22 Apr 2013 17:37:10 -0700 Subject: [PATCH] backport "allow open pay_batches to be included in search" to 2.3, RT#22708 (fallout from RT#21879) --- httemplate/search/pay_batch.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httemplate/search/pay_batch.cgi b/httemplate/search/pay_batch.cgi index 832682647..29a612568 100755 --- a/httemplate/search/pay_batch.cgi +++ b/httemplate/search/pay_batch.cgi @@ -101,8 +101,8 @@ my($begin, $end) = ( '', '' ); my @where; my($beginning,$ending) = FS::UI::Web::parse_beginning_ending($cgi); -push @where, "download >= $beginning", - "download <= $ending"; +push @where, "( (download >= $beginning AND download <= $ending)". + ' OR download IS NULL )'; my @status; if ( $cgi->param('open') ) { -- 2.20.1