summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_main/packages/package.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-04-25 16:14:47 -0700
committerIvan Kohler <ivan@freeside.biz>2014-04-25 16:14:47 -0700
commitc931539d1b09590c37576efff8128ae9095c758a (patch)
treecd6160088b63c1db7395bcf20f30ec93789bf9a8 /httemplate/view/cust_main/packages/package.html
parent4b2a48f5247303f07a00b42eb3091145be1150e2 (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.html6
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
% ) {
(&nbsp;<%pkg_event_link($cust_pkg)%>&nbsp;)
% }