mirror of
https://github.com/typemill/typemill.git
synced 2025-08-06 14:16:46 +02:00
Fix author navigation set active
This commit is contained in:
@@ -50,7 +50,7 @@ class ControllerWebAuthor extends Controller
|
||||
# extend : $request->getAttribute('c_userrole')
|
||||
# $draftNavigation = $navigation->getDraftNavigation($urlinfo, $langattr);
|
||||
|
||||
$draftNavigation = $navigation->setActiveNaviItems($draftNavigation, $keyPathArray);
|
||||
$draftNavigation = $navigation->setActiveNaviItemsWithKeyPath($draftNavigation, $keyPathArray);
|
||||
$draftNavigation = $this->c->get('dispatcher')->dispatch(new OnPagetreeLoaded($draftNavigation), 'onPagetreeLoaded')->getData();
|
||||
|
||||
$item = $navigation->getItemWithKeyPath($draftNavigation, $keyPathArray);
|
||||
|
@@ -413,13 +413,14 @@ class Navigation extends Folder
|
||||
if(!empty($searchArray) && isset($navigation[$itemKey]->folderContent))
|
||||
{
|
||||
$navigation[$itemKey]->activeParent = true;
|
||||
$navigation[$itemKey]->folderContent = $this->setActiveNaviItems($navigation[$itemKey]->folderContent, $searchArray);
|
||||
$navigation[$itemKey]->folderContent = $this->setActiveNaviItemsWithKeyPath($navigation[$itemKey]->folderContent, $searchArray);
|
||||
}
|
||||
|
||||
# break to avoid other items with that key are set active
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return $navigation;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user