diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-04-25 16:14:47 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-04-25 16:14:47 -0700 |
commit | c931539d1b09590c37576efff8128ae9095c758a (patch) | |
tree | cd6160088b63c1db7395bcf20f30ec93789bf9a8 /httemplate/view/cust_main/packages/package.html | |
parent | 4b2a48f5247303f07a00b42eb3091145be1150e2 (diff) |
optimize package view with tons of packages, RT#28526
Diffstat (limited to 'httemplate/view/cust_main/packages/package.html')
-rw-r--r-- | httemplate/view/cust_main/packages/package.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/packages/package.html b/httemplate/view/cust_main/packages/package.html index 06eb50d34..ab7bad2bf 100644 --- a/httemplate/view/cust_main/packages/package.html +++ b/httemplate/view/cust_main/packages/package.html @@ -10,7 +10,7 @@ %> <A NAME="cust_pkg<% $cust_pkg->pkgnum %>" ID ="cust_pkg<% $cust_pkg->pkgnum %>" - ><% $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '' %><B><% $part_pkg->pkg |h %></B></A> + ><% $opt{show_pkgnum} ? $cust_pkg->pkgnum.': ' : '' %><B><% $part_pkg->pkg |h %></B></A> % my $custom_comment = $part_pkg->custom_comment('cust_pkg'=>$cust_pkg); <% $custom_comment ? ' - ' : '' %> <% $custom_comment |h %> @@ -65,10 +65,10 @@ <% $br ? '<BR>' : '' %> % } -% if ( $cust_pkg->num_cust_event -% && ( $curuser->access_right('Billing event reports') +% if ( ( $curuser->access_right('Billing event reports') % || $curuser->access_right('View customer billing events') % ) +% && $cust_pkg->num_cust_event % ) { ( <%pkg_event_link($cust_pkg)%> ) % } |