diff options
author | Mark Wells <mark@freeside.biz> | 2012-03-08 12:42:33 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-03-08 13:38:33 -0800 |
commit | 2e7f1e27ead9a8837b5516e2cd2e1795d51e5ee1 (patch) | |
tree | 4cd824f2af34464b7887282b9ca08de932435066 /httemplate/view/elements | |
parent | 4a82a0ff956862834b42df7014aeba3c9b977787 (diff) |
fix svc_pbx edit link
Diffstat (limited to 'httemplate/view/elements')
-rw-r--r-- | httemplate/view/elements/svc_Common.html | 2 | ||||
-rw-r--r-- | 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 %><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) %> 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; |