projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51d5993
)
Menu: Keine nodes mehr ohne id erlauben.
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 10 Oct 2017 10:30:07 +0000
(12:30 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 10 Oct 2017 12:23:05 +0000
(14:23 +0200)
Dir werden während des erstellens der Baumstruktur nach id indiziert,
und so gibt das potentielle Kollisionen
SL/Menu.pm
patch
|
blob
|
history
diff --git
a/SL/Menu.pm
b/SL/Menu.pm
index
b916112
..
800f000
100644
(file)
--- a/
SL/Menu.pm
+++ b/
SL/Menu.pm
@@
-73,6
+73,8
@@
sub _merge {
for my $node (@$data) {
my $id = $node->{id};
+ die "menu: node with name '$node->{name}' does not have an id" if !$id;
+
my $merge_to = $by_id->{$id};
if (!$merge_to) {