[freeside-commits] freeside/httemplate/browse agent_type.cgi, 1.15,
1.16
Ivan,,,
ivan at wavetail.420.am
Wed Jun 21 01:42:20 PDT 2006
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail:/tmp/cvs-serv25961/httemplate/browse
Modified Files:
agent_type.cgi
Log Message:
speed up the agent type report when there are lots of package definitions
Index: agent_type.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/agent_type.cgi,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- agent_type.cgi 14 May 2006 16:47:30 -0000 1.15
+++ agent_type.cgi 21 Jun 2006 08:42:18 -0000 1.16
@@ -13,21 +13,18 @@
[ 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
];
};
More information about the freeside-commits
mailing list