summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorivan <ivan>2005-06-09 20:26:08 +0000
committerivan <ivan>2005-06-09 20:26:08 +0000
commit9788b10d423bb3e4c16989b08bcce6f1a78f3d89 (patch)
tree6885da1aeee4a34ee43b9ed7ccd808e5f3fd66f5 /httemplate/browse
parent62b2ec13976bede922cbff2de75e8aab6180af39 (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-xhttemplate/browse/part_pkg.cgi3
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 ) {