fix svc_pbx edit link
authorMark Wells <mark@freeside.biz>
Thu, 8 Mar 2012 20:42:33 +0000 (12:42 -0800)
committerMark Wells <mark@freeside.biz>
Thu, 8 Mar 2012 21:38:33 +0000 (13:38 -0800)
httemplate/view/elements/svc_Common.html
httemplate/view/elements/svc_edit_link.html

index a822412..3130c73 100644 (file)
@@ -52,7 +52,7 @@ function areyousure(href) {
 
 <% mt('Service #') |h %><B><% $svcnum %></B>
 % my $url = $opt{'edit_url'} || $p. 'edit/'. $opt{'table'}. '.cgi?';
-| <& /view/elements/svc_edit_link.html, 'svc' => $svc_x &>
+| <& /view/elements/svc_edit_link.html, 'svc' => $svc_x, 'edit_url' => $url &>
 <BR>
 
 <% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>
index b16261a..d65db0a 100644 (file)
@@ -14,8 +14,8 @@ function areyousure_delete() {
 my %opt = @_;
 my $svc_x = $opt{'svc'} or die "'svc' required";
 my $svcdb = $opt{'table'} || $svc_x->table;
-my $edit_url = $opt{'edit_url'} || 
-               $p . 'edit/' . $svcdb . '.cgi?' . $svc_x->svcnum;
+my $edit_url = ($opt{'edit_url'} || 
+               $p . 'edit/' . $svcdb . '.cgi?' ). $svc_x->svcnum;
 my $cancel_url = $p . 'misc/unprovision.cgi?' . $svc_x->svcnum;
 my $cust_svc = $svc_x->cust_svc; # always exists
 my $cancel_date = $cust_svc->pkg_cancel_date;