diff options
author | ivan <ivan> | 2005-06-09 20:26:08 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-06-09 20:26:08 +0000 |
commit | 9788b10d423bb3e4c16989b08bcce6f1a78f3d89 (patch) | |
tree | 6885da1aeee4a34ee43b9ed7ccd808e5f3fd66f5 /httemplate/browse | |
parent | 62b2ec13976bede922cbff2de75e8aab6180af39 (diff) |
tiny refactor patch from rjbs: It changes the service listing to use $part_pkg->pkg_svc instead of a qsearch, which means that the listing will still work if pkg_svc has been subclassed.
Diffstat (limited to 'httemplate/browse')
-rwxr-xr-x | httemplate/browse/part_pkg.cgi | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/httemplate/browse/part_pkg.cgi b/httemplate/browse/part_pkg.cgi index 48b0ab2b3..ffa0d87c2 100755 --- a/httemplate/browse/part_pkg.cgi +++ b/httemplate/browse/part_pkg.cgi @@ -89,8 +89,7 @@ my $taxclasses = $conf->exists('enable_taxclasses'); <% foreach my $part_pkg ( sort $sortby @part_pkg ) { - my(@pkg_svc)=grep $_->getfield('quantity'), - qsearch( 'pkg_svc', { 'pkgpart' => $part_pkg->pkgpart } ); + my @pkg_svc = $part_pkg->pkg_svc; my($rowspan)=scalar(@pkg_svc); my $plandata; if ( $part_pkg->plan ) { |