optimize customer view when there's lots of packages; *really* avoid looking up any...
[freeside.git] / httemplate / view / cust_main / packages / status.html
index 106137b..af407b0 100644 (file)
 %
 %     } 
 %
-%     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;
 %     }
 
 my %opt = @_;
 
-my $conf = new FS::Conf;
-
 my $bgcolor  = $opt{'bgcolor'};
 my $cust_pkg = $opt{'cust_pkg'};
 my $part_pkg = $opt{'part_pkg'};