projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c54fff
)
warnings
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 1 Feb 2013 13:25:34 +0000
(14:25 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 1 Feb 2013 13:25:34 +0000
(14:25 +0100)
SL/Layout/Javascript.pm
patch
|
blob
|
history
diff --git
a/SL/Layout/Javascript.pm
b/SL/Layout/Javascript.pm
index
c63b1f7
..
2cda0f4
100644
(file)
--- a/
SL/Layout/Javascript.pm
+++ b/
SL/Layout/Javascript.pm
@@
-110,10
+110,13
@@
sub create_menu {
my $form = $main::form;
my %myconfig = %main::myconfig;
+ $depth ||= 0;
+
die if ($depth * 1 > 5);
my @menuorder = $menu->access_control(\%myconfig, $parent);
$parent .= "--" if ($parent);
+ $parent ||= '';
foreach my $name (@menuorder) {
substr($name, 0, length($parent), "");