From: ivan Date: Fri, 4 Jul 2003 01:37:46 +0000 (+0000) Subject: don't populate the whole initial list if there are tons of POPs X-Git-Tag: freeside_1_5_0pre3~19 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=f2098c54512150c098f28f59ffe4a62464ef630e;p=freeside.git don't populate the whole initial list if there are tons of POPs --- diff --git a/FS/FS/svc_acct_pop.pm b/FS/FS/svc_acct_pop.pm index 404816b47..196ab7ebb 100644 --- a/FS/FS/svc_acct_pop.pm +++ b/FS/FS/svc_acct_pop.pm @@ -166,7 +166,13 @@ END $text .= ''; #callback? return 3 html pieces? #''; $text .= qq!' if scalar(@$pops) == 1; - my %pop = (); - foreach (@$pops) { - push @{ $pop{ $_->{state} }->{ $_->{ac} } }, $_; - } + #my %pop = (); + #my %popnum2pop = (); + #foreach (@$pops) { + # push @{ $pop{ $_->{state} }->{ $_->{ac} } }, $_; + # $popnum2pop{$_->{popnum}} = $_; + #} my $text = < @@ -460,8 +461,14 @@ END $text .= qq!