From: Ivan Kohler Date: Tue, 23 Apr 2013 00:37:10 +0000 (-0700) Subject: backport "allow open pay_batches to be included in search" to 2.3, RT#22708 (fallout... X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=bf6644780bf1036f5eca4d191caf7c141447dd47;p=freeside.git backport "allow open pay_batches to be included in search" to 2.3, RT#22708 (fallout from RT#21879) --- 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') ) {