fix svc_pbx edit link
[freeside.git] / httemplate / view / elements / svc_Common.html
index 8f915a1..3130c73 100644 (file)
@@ -35,7 +35,7 @@ function areyousure(href) {
 
 % if ( $custnum ) { 
 
-  <& /elements/header.html,emt("View [_1]: [_2]",$label,$value) &>
+  <& /elements/header.html, mt("View [_1]: [_2]",$label,$value) &>
 
   <& /elements/small_custview.html, $custnum, '', 1,
      "${p}view/cust_main.cgi" &>
@@ -43,7 +43,7 @@ function areyousure(href) {
 
 % } else { 
 
-  <& /elements/header.html,emt("View [_1]: [_2]",$label,$value), menubar(
+  <& /elements/header.html, mt("View [_1]: [_2]",$label,$value), menubar(
       emt("Cancel this (unaudited) [_1]",$label) =>
             "javascript:areyousure(\'${p}misc/cancel-unaudited.cgi?$svcnum\')"
   ) &>
@@ -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) %>
@@ -159,13 +159,13 @@ my($label, $value, $svcdb) = $cust_svc->label;
 
 my $part_svc = $cust_svc->part_svc;
 
-  #false laziness w/edit/svc_Common.html
-  #override default labels with service-definition labels if applicable
-  my $labels = $opt{labels}; #not -> here
-  foreach my $field ( keys %$labels ) {
-    my $col = $part_svc->part_svc_column($field);
-    $labels->{$field} = $col->columnlabel if $col->columnlabel !~ /^\S*$/;
-  }
+#false laziness w/edit/svc_Common.html
+#override default labels with service-definition labels if applicable
+my $labels = $opt{labels}; #not -> here
+foreach my $field ( keys %$labels ) {
+  my $col = $part_svc->part_svc_column($field);
+  $labels->{$field} = $col->columnlabel if $col->columnlabel !~ /^\s*$/;
+}
 
 my $pkgnum = $cust_svc->pkgnum;