From 2e7f1e27ead9a8837b5516e2cd2e1795d51e5ee1 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 8 Mar 2012 12:42:33 -0800 Subject: [PATCH] fix svc_pbx edit link --- httemplate/view/elements/svc_Common.html | 2 +- httemplate/view/elements/svc_edit_link.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html index a822412bf..3130c73a0 100644 --- a/httemplate/view/elements/svc_Common.html +++ b/httemplate/view/elements/svc_Common.html @@ -52,7 +52,7 @@ function areyousure(href) { <% mt('Service #') |h %><% $svcnum %> % 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 &>
<% ntable("#cccccc") %><% ntable("#cccccc",2) %> diff --git a/httemplate/view/elements/svc_edit_link.html b/httemplate/view/elements/svc_edit_link.html index b16261a87..d65db0a8f 100644 --- a/httemplate/view/elements/svc_edit_link.html +++ b/httemplate/view/elements/svc_edit_link.html @@ -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; -- 2.11.0