bunch of fixes
This commit is contained in:
parent
02e687d04c
commit
156f48f465
10 changed files with 45 additions and 23 deletions
|
|
@ -67,15 +67,18 @@ sub _formatFunction {
|
|||
my $url;
|
||||
if (exists $function->{func}) {
|
||||
$url = WebGUI::URL::page("func=".$function->{func});
|
||||
$url = '#' if $session{form}{func} eq $function->{func};
|
||||
} else {
|
||||
$url = WebGUI::URL::page("op=".$function->{op});
|
||||
$url = '#' if $session{form}{op} eq $function->{op};
|
||||
}
|
||||
return {
|
||||
title=>WebGUI::International::get($function->{title}{id}, $function->{title}{namespace}),
|
||||
icon=>$session{config}{extrasURL}."/adminConsole/".$function->{icon},
|
||||
'icon.small'=>$session{config}{extrasURL}."/adminConsole/small/".$function->{icon},
|
||||
url=>$url,
|
||||
canUse=>WebGUI::Grouping::isInGroup($function->{group})
|
||||
canUse=>WebGUI::Grouping::isInGroup($function->{group}),
|
||||
isCurrentOpFunc=>($session{form}{op} eq $function->{op} || $session{form}{func} eq $function->{func})
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue