fix: Missing documentation breaks the list of Available Macros

This commit is contained in:
Wouter van Oijen 2006-07-20 12:41:32 +00:00
parent eab886f618
commit 7405613b6d
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,8 @@
7.0.3
- Fixed a problem with the 7.0.0-7.0.1 upgrade relating to internationalized
department names.
- fix: Missing documentation breaks the List of Available Macros (Wouter
van Oijen / ProcoliX)
7.0.2

View file

@ -132,7 +132,8 @@ sub _get {
return $help->{$id};
}
else {
return "Unable to load help for $namespace -> $id\n";
$session->errorHandler->warn("Unable to load help for $namespace -> $id");
return undef;
}
}
@ -301,6 +302,7 @@ sub www_viewHelp {
my @related = @{ $help->{related} };
foreach my $row (@related) {
my $relatedHelp = _get($session,$row->{tag},$row->{namespace});
next unless (defined $relatedHelp);
$ac->addSubmenuItem(_link($session,$row->{tag},$row->{namespace}),$i18n->get($relatedHelp->{title},$row->{namespace}));
}
my %vars;