[freeside-commits] branch FREESIDE_4_BRANCH updated. df5bf851f4b008a243d4d5e94708c26b1fd80eb5

Mark Wells mark at 420.am
Fri Aug 14 18:12:18 PDT 2015


The branch, FREESIDE_4_BRANCH has been updated
       via  df5bf851f4b008a243d4d5e94708c26b1fd80eb5 (commit)
      from  b8bfc860f3439901d706dda50749968398e7e7ce (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 df5bf851f4b008a243d4d5e94708c26b1fd80eb5
Author: Mark Wells <mark at freeside.biz>
Date:   Fri Aug 14 16:32:21 2015 -0700

    fix links from package report to services that use view/svc_Common, #37621

diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index c88b3a1..f1e686a 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -310,11 +310,14 @@ my $process_svc_labels = sub {
       foreach ( map { [ $_->label ] } @{ $part_svc->cust_pkg_svc } ) {
         push @out, [ 
         { 'data' => $_->[0]. ':',
-          'align'=> 'right', },
+          'align'=> 'right',
+        },
+
         { 'data' => $_->[1],
           'align'=> 'left',
-          'link' => $p. 'view/' .
-          $_->[2]. '.cgi?'. $_->[3], },
+          'link' => $p. 'view/cust_svc.cgi?' . $_->[3],
+        },
+
         ];
       }
     }
diff --git a/httemplate/view/cust_svc.cgi b/httemplate/view/cust_svc.cgi
index 8ccfce3..aaf3678 100644
--- a/httemplate/view/cust_svc.cgi
+++ b/httemplate/view/cust_svc.cgi
@@ -1,4 +1,4 @@
-<% $cgi->redirect(popurl(1)."$svcdb.cgi?". $svcnum ) %>
+<% $cgi->redirect($url) %>
 <%init>
 
 #needed here?  we're just redirecting.  i guess it could reveal the svcdb of a
@@ -18,6 +18,12 @@ my $part_svc = qsearchs('part_svc',{'svcpart'=> $cust_svc->svcpart } );
 die "Unknown svcpart" unless $part_svc;
 
 my $svcdb = $part_svc->svcdb;
+my $url = svc_url(
+            'm' => $m,
+            'action'  => 'view',
+            'svcdb'   => $svcdb,
+            'query'   => $svcnum,
+          );
 
 </%init>
 

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

Summary of changes:
 httemplate/search/cust_pkg.cgi |    9 ++++++---
 httemplate/view/cust_svc.cgi   |    8 +++++++-
 2 files changed, 13 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list