[freeside-commits] freeside/httemplate/view/cust_main packages.html, 1.20.2.13, 1.20.2.14
Ivan,,,
ivan at wavetail.420.am
Thu Jul 10 11:48:11 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv1568
Modified Files:
Tag: FREESIDE_1_7_BRANCH
packages.html
Log Message:
fix variable scoping issues preventing customer view page from coing up
Index: packages.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages.html,v
retrieving revision 1.20.2.13
retrieving revision 1.20.2.14
diff -u -d -r1.20.2.13 -r1.20.2.14
--- packages.html 1 Jul 2008 05:01:29 -0000 1.20.2.13
+++ packages.html 10 Jul 2008 18:48:05 -0000 1.20.2.14
@@ -149,8 +149,8 @@
<% 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 @@
% }
<% 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 @@
% }
<% 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 @@
$title = '<FONT SIZE=-1>( '. pkg_unadjourn_link($cust_pkg). ' ) </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>( '. pkg_unexpire_link($cust_pkg). ' ) </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) : '';
More information about the freeside-commits
mailing list