diff options
author | ivan <ivan> | 2005-07-12 09:31:21 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-07-12 09:31:21 +0000 |
commit | 5061c5bba69d3658968f1b0c0b9aff7fd5336e26 (patch) | |
tree | ca4927032c96608439577ea9b03da868f580e059 /httemplate/view/cust_pkg.cgi | |
parent | 1c7f3b811c8ab9c7ebe89ff080c333cbdf99d78a (diff) |
<rjbs> More of the same: these patches make it safer to subclass FS::part_pkg's pkg_svc method by eliminating qsearches on table pkg_svc.
Diffstat (limited to 'httemplate/view/cust_pkg.cgi')
-rwxr-xr-x | httemplate/view/cust_pkg.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/view/cust_pkg.cgi b/httemplate/view/cust_pkg.cgi index 5f0e6bffc..a20149ae2 100755 --- a/httemplate/view/cust_pkg.cgi +++ b/httemplate/view/cust_pkg.cgi @@ -104,8 +104,9 @@ unless ($cancel) { #list of services this pkgpart includes my $pkg_svc; - my %pkg_svc = (); - foreach $pkg_svc ( qsearch('pkg_svc',{'pkgpart'=> $cust_pkg->pkgpart }) ) { + my %pkg_svc; + #foreach $pkg_svc ( qsearch('pkg_svc',{'pkgpart'=> $cust_pkg->pkgpart }) ) { + foreach $pkg_svc ( $cust_pkg->part_pkg->pkg_svc ) { $pkg_svc{$pkg_svc->svcpart} = $pkg_svc->quantity if $pkg_svc->quantity; } |