projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3dc9375
)
work even if there are stray type_pkgs records around
author
ivan
<ivan>
Sun, 21 Dec 2003 23:16:45 +0000
(23:16 +0000)
committer
ivan
<ivan>
Sun, 21 Dec 2003 23:16:45 +0000
(23:16 +0000)
httemplate/browse/agent_type.cgi
patch
|
blob
|
history
diff --git
a/httemplate/browse/agent_type.cgi
b/httemplate/browse/agent_type.cgi
index
c61208c
..
5473804
100755
(executable)
--- a/
httemplate/browse/agent_type.cgi
+++ b/
httemplate/browse/agent_type.cgi
@@
-19,7
+19,7
@@
foreach my $agent_type ( sort {
} qsearch('agent_type',{}) ) {
my $hashref = $agent_type->hashref;
#more efficient to do this with SQL...
} qsearch('agent_type',{}) ) {
my $hashref = $agent_type->hashref;
#more efficient to do this with SQL...
- my @type_pkgs = grep { ! $_->part_pkg->disabled }
+ my @type_pkgs = grep {
$_->part_pkg and
! $_->part_pkg->disabled }
qsearch('type_pkgs',{'typenum'=> $hashref->{typenum} });
my $rowspan = scalar(@type_pkgs);
$rowspan = int($rowspan/2+0.5) ;
qsearch('type_pkgs',{'typenum'=> $hashref->{typenum} });
my $rowspan = scalar(@type_pkgs);
$rowspan = int($rowspan/2+0.5) ;