summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/browse/agent_type.cgi13
1 files changed, 5 insertions, 8 deletions
diff --git a/httemplate/browse/agent_type.cgi b/httemplate/browse/agent_type.cgi
index a5ffb1048..ceffce3d4 100755
--- a/httemplate/browse/agent_type.cgi
+++ b/httemplate/browse/agent_type.cgi
@@ -13,21 +13,18 @@ my $packages_sub = sub {
[ map {
my $type_pkgs = $_;
- my $part_pkg = $type_pkgs->part_pkg;
+ #my $part_pkg = $type_pkgs->part_pkg;
[
{
- 'data' => $part_pkg->pkg. ' - '. $part_pkg->comment,
+ #'data' => $part_pkg->pkg. ' - '. $part_pkg->comment,
+ 'data' => $type_pkgs->pkg. ' - '. $type_pkgs->comment,
'align' => 'left',
'link' => $p. 'edit/part_pkg.cgi?'. $type_pkgs->pkgpart,
},
];
}
- #sort {
- # }
- grep {
- $_->part_pkg and ! $_->part_pkg->disabled
- }
- $agent_type->type_pkgs #XXX the method should order itself by something
+
+ $agent_type->type_pkgs_enabled
];
};