X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c621a9187eb258019fa540490de21b248c709516..1c2b6d083a94cd5d3d83c696ac971b566d69bf8b:/SL/Menu.pm diff --git a/SL/Menu.pm b/SL/Menu.pm index adac1b006..9fcf15374 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -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 {