summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-03-22 14:02:04 -0700
committerMark Wells <mark@freeside.biz>2013-03-22 14:02:04 -0700
commit686ecf55b716396505eefde07593d7de3a423751 (patch)
treeb4d92a59f115a92ccc2190c881d02e81c4bb2580
parenta205ffec778bd42eb084bcffec6884063263f634 (diff)
allow open pay_batches to be included in search
-rwxr-xr-xhttemplate/search/pay_batch.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/search/pay_batch.cgi b/httemplate/search/pay_batch.cgi
index 00c6ba1b9..620996abd 100755
--- a/httemplate/search/pay_batch.cgi
+++ b/httemplate/search/pay_batch.cgi
@@ -150,8 +150,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') ) {