diff options
| author | ivan <ivan> | 2009-03-29 09:38:30 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2009-03-29 09:38:30 +0000 |
| commit | 320bcf3afbae18935ab954d1a738e9502d53955f (patch) | |
| tree | 761704924947f82384499876a89b850af1adee6c /httemplate/view/cust_main/packages | |
| parent | e3c3d86b7091d806af42e40475a28ea8afb5865c (diff) | |
optimize customer view when there's lots of packages; *really* avoid looking up any config inside the package loop, RT#5083
Diffstat (limited to 'httemplate/view/cust_main/packages')
| -rw-r--r-- | httemplate/view/cust_main/packages/status.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index 106137ba9..af407b0df 100644 --- a/httemplate/view/cust_main/packages/status.html +++ b/httemplate/view/cust_main/packages/status.html @@ -122,7 +122,7 @@ % % } % -% if ( $conf->exists('cust_pkg-show_autosuspend') ) { +% if ( $opt{'cust_pkg-show_autosuspend'} ) { % my $autosuspend = pkg_autosuspend_time( $cust_pkg ); % $cust_pkg->set('autosuspend', $autosuspend) if $autosuspend; % } @@ -170,8 +170,6 @@ my %opt = @_; -my $conf = new FS::Conf; - my $bgcolor = $opt{'bgcolor'}; my $cust_pkg = $opt{'cust_pkg'}; my $part_pkg = $opt{'part_pkg'}; |
