[freeside-commits] branch master updated. 779cc1bc17634087c10030efb14b2bdd68ec03b3

Jonathan Prykop jonathan at 420.am
Thu Mar 31 21:07:23 PDT 2016


The branch, master has been updated
       via  779cc1bc17634087c10030efb14b2bdd68ec03b3 (commit)
      from  5475fa54aec264ca615352a6d6288b94a3f16ad0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 779cc1bc17634087c10030efb14b2bdd68ec03b3
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Thu Mar 31 23:07:19 2016 -0500

    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 fe11b95..d46a4ff 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 

-----------------------------------------------------------------------

Summary of changes:
 httemplate/view/cust_main/change_history.html |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list