From: Sven Schöling Date: Mon, 22 Oct 2012 10:42:30 +0000 (+0200) Subject: action=menu.pl macht keinen Sinn mehr. submenu ist der korrekte Check. X-Git-Tag: release-3.0.0beta1~100 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b886be01c594bbecba4c165959690a61ad3244b6;p=kivitendo-erp.git action=menu.pl macht keinen Sinn mehr. submenu ist der korrekte Check. --- diff --git a/SL/Layout/Css.pm b/SL/Layout/Css.pm index 2bb0455ca..883353a20 100644 --- a/SL/Layout/Css.pm +++ b/SL/Layout/Css.pm @@ -51,8 +51,7 @@ sub print_menu { my $menu_title = $::locale->text($item); my $menu_text = $menu_title; - if ($menu_item->{"submenu"} || !defined($menu_item->{"module"}) || - ($menu_item->{"module"} eq "menu.pl")) { + if ($menu_item->{"submenu"} || !defined($menu_item->{"module"})) { my $h = $self->print_menu("${parent}${item}", $depth * 1 + 1)."\n"; if (!$parent) { diff --git a/SL/Layout/Javascript.pm b/SL/Layout/Javascript.pm index d8f079fcf..6e6d6553d 100644 --- a/SL/Layout/Javascript.pm +++ b/SL/Layout/Javascript.pm @@ -114,7 +114,7 @@ sub create_menu { my $item = { 'title' => $::locale->text($name) }; push @{ $all_items }, $item; - if ($menu_item->{submenu} || !defined($menu_item->{module}) || ($menu_item->{module} eq "menu.pl")) { + if ($menu_item->{submenu} || !defined($menu_item->{module})) { $item->{subitems} = []; $item->{image} = _icon_path("$name.png"); $self->create_menu($menu, $item->{subitems}, "${parent}${name}", $depth * 1 + 1);