From: Jonathan Prykop Date: Fri, 1 Apr 2016 04:07:19 +0000 (-0500) Subject: RT#39958 Service Provisioning History - New Requirement [bug fix] X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=88a08dcdebbdfe2d9ad223922e3505ee019862ae RT#39958 Service Provisioning History - New Requirement [bug fix] --- 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