summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-07-10 18:48:05 +0000
committerivan <ivan>2008-07-10 18:48:05 +0000
commit45a0eb250d954b0938e821bd12e2c37a16746147 (patch)
tree455c57d50fb68698b29f3a10ea4fbee5c177b21a
parentb8348d7ea92769e23b8c36246efcdd65942c6244 (diff)
fix variable scoping issues preventing customer view page from coing up
-rwxr-xr-xhttemplate/view/cust_main/packages.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index 94ef88a8a..77ca1cded 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -149,8 +149,8 @@ Current packages
<% pkg_status_row( $cust_pkg, 'Setup', 'setup', conf=>$conf ) %>
<% pkg_status_row_changed( $cust_pkg, conf=>$conf ) %>
- <% pkg_status_row_if( $cust_pkg, $last_bill_or_renewed, 'last_bill', conf=>$conf ) %>
- <% pkg_status_row_if( $cust_pkg, 'Suspended', 'susp', conf=>$conf ) %>
+ <% pkg_status_row_if( $cust_pkg, $last_bill_or_renewed, 'last_bill', conf=>$conf, curuser=>$curuser ) %>
+ <% pkg_status_row_if( $cust_pkg, 'Suspended', 'susp', conf=>$conf, curuser=>$curuser ) %>
% }
%
@@ -174,9 +174,9 @@ Current packages
% }
<% pkg_status_row_changed( $cust_pkg, conf=>$conf ) %>
- <% pkg_status_row_if( $cust_pkg, $last_bill_or_renewed, 'last_bill', conf=>$conf ) %>
+ <% pkg_status_row_if( $cust_pkg, $last_bill_or_renewed, 'last_bill', conf=>$conf, curuser=>$curuser ) %>
% # pkg_status_row($cust_pkg, 'Next bill', 'bill', conf=>$conf)
- <% pkg_status_row_if( $cust_pkg, 'Expires', 'expire', conf=>$conf ) %>
+ <% pkg_status_row_if( $cust_pkg, 'Expires', 'expire', conf=>$conf, curuser=>$curuser ) %>
<TR>
<TD COLSPAN=<%$colspan%>>
@@ -250,10 +250,10 @@ Current packages
% }
<% pkg_status_row_changed( $cust_pkg, conf=>$conf ) %>
- <% pkg_status_row_if( $cust_pkg, $last_bill_or_renewed, 'last_bill', conf=>$conf ) %>
- <% pkg_status_row_if( $cust_pkg, $next_bill_or_prepaid_until, 'bill', conf=>$conf ) %>
- <% pkg_status_row_if( $cust_pkg, 'Will suspend on', 'adjourn', conf=>$conf ) %>
- <% pkg_status_row_if( $cust_pkg, 'Expires', 'expire', conf=>$conf ) %>
+ <% pkg_status_row_if( $cust_pkg, $last_bill_or_renewed, 'last_bill', conf=>$conf, curuser=>$curuser ) %>
+ <% pkg_status_row_if( $cust_pkg, $next_bill_or_prepaid_until, 'bill', conf=>$conf, curuser=>$curuser ) %>
+ <% pkg_status_row_if( $cust_pkg, 'Will suspend on', 'adjourn', conf=>$conf, curuser=>$curuser ) %>
+ <% pkg_status_row_if( $cust_pkg, 'Expires', 'expire', conf=>$conf, curuser=>$curuser ) %>
% if ( $part_pkg->freq ) {
@@ -388,12 +388,12 @@ sub pkg_status_row_if {
$title = '<FONT SIZE=-1>(&nbsp;'. pkg_unadjourn_link($cust_pkg). '&nbsp;)&nbsp;</FONT>'. $title
if ( $field eq 'adjourn' &&
- $curuser->access_right('Suspend customer package later')
+ $opt{curuser}->access_right('Suspend customer package later')
);
$title = '<FONT SIZE=-1>(&nbsp;'. pkg_unexpire_link($cust_pkg). '&nbsp;)&nbsp;</FONT>'. $title
if ( $field eq 'expire' &&
- $curuser->access_right('Cancel customer package later')
+ $opt{curuser}->access_right('Cancel customer package later')
);
$cust_pkg->get($field) ? pkg_status_row($cust_pkg, $title, $field, %opt) : '';