]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Menu.pm
Bugfix in SL/Menu und weitere stricts.
[kivitendo-erp.git] / SL / Menu.pm
index adac1b00689eca9d18fc18e534dcbe7fa7853e67..9fcf15374eb3babffd34ac5d408db0b7d28b4269 100644 (file)
@@ -400,7 +400,10 @@ sub set_access {
 
   $self->{ORDER} = [ grep { $self->{$_}->{VISIBLE} } @{ $self->{ORDER} } ];
 
+  { no strict 'refs';
+  # ToDO: fix this. nuke and pave algorithm without type checking screams for problems.
   map { delete @{$self->{$_}}{qw(GRANTED IS_MENU NUM_VISIBLE_CHILDREN VISIBLE ACCESS)} if ($_ ne 'ORDER') } keys %{ $self };
+  }
 }
 
 sub dump_visible {