projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
4.x+ self-service API: list and remove cards on file, RT#38919
[freeside.git]
/
httemplate
/
graph
/
signupdate.cgi
diff --git
a/httemplate/graph/signupdate.cgi
b/httemplate/graph/signupdate.cgi
index
011817c
..
8261257
100644
(file)
--- a/
httemplate/graph/signupdate.cgi
+++ b/
httemplate/graph/signupdate.cgi
@@
-43,8
+43,9
@@
my $edate = DateTime->new(
month => $cgi->param('end_month')
)->add( months => 1 )->epoch();
month => $cgi->param('end_month')
)->add( months => 1 )->epoch();
-my $where .= " AND signupdate >= $sdate ".
- " AND signupdate < $edate ";
+my $where = (%where ? ' AND ' : ' WHERE ');
+$where .= " signupdate >= $sdate ".
+ " AND signupdate < $edate ";
foreach my $cust (qsearch({ table => 'cust_main',
hashref => \%where,
foreach my $cust (qsearch({ table => 'cust_main',
hashref => \%where,