summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httemplate/view/cust_main/change_history.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/view/cust_main/change_history.html b/httemplate/view/cust_main/change_history.html
index fe11b95f2..d46a4ffde 100644
--- a/httemplate/view/cust_main/change_history.html
+++ b/httemplate/view/cust_main/change_history.html
@@ -159,10 +159,10 @@ foreach my $table ( keys %tables ) {
# but it would spoil database optimizations on this lookup
my @svcnumobj = qsearch({
'select' => 'DISTINCT svcnum',
- 'hashref' => { 'custnum' => $cust_main->custnum,
- 'history_date' => { op=>'>=', value=>$newer_than } },
+ 'hashref' => { 'history_date' => { op=>'>=', value=>$newer_than } },
'table' => 'h_cust_svc',
'addl_from' => 'JOIN cust_pkg USING (pkgnum)',
+ 'extra_sql' => ' AND custnum = '. $cust_main->custnum,
});
# now grab those svcs explicitly