From 6f4fcf7bf0276763d3bdc3ac38459a962ff4635a Mon Sep 17 00:00:00 2001 From: "mh@waldpark.octosoft.eu" Date: Thu, 12 May 2016 13:37:38 +0200 Subject: [PATCH] Menu: Fehlerchecks beim yaml einlesen(2) Abfangen der doppelten ID erst mal rausgenommen, da die ID sehr wohl mehrfach in einer Datei referenziert werden kann. --- SL/Menu.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Menu.pm b/SL/Menu.pm index bdac42c0d..08727ce36 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -43,8 +43,8 @@ sub new { die 'not an array ref' unless $data && 'ARRAY' eq ref $data; # TODO get better diag to user # in particular duplicate ids tend to come up as a user error when editing the menu files - my %uniq_ids; - $uniq_ids{$_->{id}}++ && die "Error in $file: duplicate id $_->{id}" for @$data; + #my %uniq_ids; + #$uniq_ids{$_->{id}}++ && die "Error in $file: duplicate id $_->{id}" for @$data; _merge($nodes, $nodes_by_id, $data); } -- 2.20.1