X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fchange_history.html;fp=httemplate%2Fview%2Fcust_main%2Fchange_history.html;h=d46a4ffdee34c326ebd99b14e1e71812236c88c0;hb=779cc1bc17634087c10030efb14b2bdd68ec03b3;hp=fe11b95f22f530cc4b5ebca8c2982e47bc2eec7e;hpb=5475fa54aec264ca615352a6d6288b94a3f16ad0;p=freeside.git 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