projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ff2ad3e
)
really prevent separate part_pkg query, RT#5083
author
ivan
<ivan>
Mon, 30 Mar 2009 03:12:25 +0000
(
03:12
+0000)
committer
ivan
<ivan>
Mon, 30 Mar 2009 03:12:25 +0000
(
03:12
+0000)
httemplate/view/cust_main/packages.html
patch
|
blob
|
history
diff --git
a/httemplate/view/cust_main/packages.html
b/httemplate/view/cust_main/packages.html
index
9b13a8f
..
001e6ec
100755
(executable)
--- a/
httemplate/view/cust_main/packages.html
+++ b/
httemplate/view/cust_main/packages.html
@@
-85,11
+85,6
@@
Current packages
% $bgcolor = $bgcolor1;
% }
%
% $bgcolor = $bgcolor1;
% }
%
-% my %hash = $cust_pkg->hash;
-% my %part_pkg = map { /^part_pkg_(.+)$/ or die; ( $1 => $hash{$_} ); }
-% grep { /^part_pkg_/ } keys %hash;
-% $cust_pkg->{'_pkgpart'} = new FS::part_pkg \%part_pkg;
-%
% my %iopt = (
% 'bgcolor' => $bgcolor,
% 'cust_pkg' => $cust_pkg,
% my %iopt = (
% 'bgcolor' => $bgcolor,
% 'cust_pkg' => $cust_pkg,
@@
-184,6
+179,13
@@
sub get_packages {
} );
my $num_old_packages = scalar(@packages);
} );
my $num_old_packages = scalar(@packages);
+ foreach my $cust_pkg ( @packages ) {
+ my %hash = $cust_pkg->hash;
+ my %part_pkg = map { /^part_pkg_(.+)$/ or die; ( $1 => $hash{$_} ); }
+ grep { /^part_pkg_/ } keys %hash;
+ $cust_pkg->{'_pkgpart'} = new FS::part_pkg \%part_pkg;
+ }
+
unless ( $cgi->param('showoldpackages') ) {
my $years = $conf->config('cust_main-packages-years') || 2;
my $seconds = 31556926; #60*60*24*365.2422 is close enough
unless ( $cgi->param('showoldpackages') ) {
my $years = $conf->config('cust_main-packages-years') || 2;
my $seconds = 31556926; #60*60*24*365.2422 is close enough