[freeside-commits] freeside/httemplate/view/cust_main/packages status.html, 1.3, 1.4
Ivan,,,
ivan at wavetail.420.am
Sun Mar 29 02:38:32 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages
In directory wavetail.420.am:/tmp/cvs-serv29697/packages
Modified Files:
status.html
Log Message:
optimize customer view when there's lots of packages; *really* avoid looking up any config inside the package loop, RT#5083
Index: status.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages/status.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- status.html 20 Feb 2009 02:41:06 -0000 1.3
+++ status.html 29 Mar 2009 09:38:30 -0000 1.4
@@ -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'};
More information about the freeside-commits
mailing list