summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-10 01:08:48 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-10 01:08:48 +0000
commitfdc51082c09fbe2d3db25bcc85945959a5728ffd (patch)
treea3d9572684c236afbe919cfc9ab2be3b25a6d8e2 /scripts
parent553b444aa1cf282f89c58a416f52df7ef9f78348 (diff)
Applying fix for order consolidation
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1366 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'scripts')
-rw-r--r--scripts/menu.pl33
1 files changed, 0 insertions, 33 deletions
diff --git a/scripts/menu.pl b/scripts/menu.pl
index 3b2748a1..4f5cbb80 100644
--- a/scripts/menu.pl
+++ b/scripts/menu.pl
@@ -43,41 +43,8 @@ sub expanding_menu {
template => 'menu_expand',
format => 'HTML',
);
- $request->{subs} = [];
- $menu->debug({file => '/tmp/debug-menu'});
- $request->debug({file => '/tmp/debug'});
$template->render($menu);
}
-sub _attach_references {
- no strict qw(refs);
- my ($args) = @_;
- my ($source, $dest, $path)
- = ($args->{source}, $args->{dest}, $args->{path});
- my %hash;
- if ($path and $source->{id}){
- for (sort keys %$source){
- next if $_ eq 'subs';
- $hash{$_} = $source->{$_};
- }
- $hash{path} = $path;
- push @{$dest}, \%hash;
- foreach (sort keys %{$source->{subs}}) {
- _attach_references({
- source => $source->{subs}->{$_},
- dest => $dest,
- path => "$path--$_",
- });
- }
- } else {
- foreach (sort keys %$source){
- _attach_references({
- source => $source->{$_},
- dest => $dest,
- path => "$_",
- });
- }
- }
-}
1;