Skip to content

Commit 492e02c

Browse files
Update NavigationLink.php
NavigationLink é inicializado mesmo sem url..para que possa ir buscar o url do pai
1 parent 9ece605 commit 492e02c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsystems/navigation/Navigation/Lib/NavigationLink.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ function merge ($navigationMap, $prepend = false)
199199
$link->parent ($this);
200200
if (is_string ($key) && !exists ($link->rawUrl ()))
201201
$link->url ($key);
202+
else
203+
$link->url ('');//initialize child because it will get the parent's id
202204
}
203205
if ($prepend)
204206
$this->links = array_merge ($navigationMap, $this->links);

0 commit comments

Comments
 (0)