1
0
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:
trendschau
2023-10-13 15:13:49 +02:00
parent 7f89c4bcbb
commit e888653d89
3 changed files with 4 additions and 3 deletions

View File

@@ -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);

View File

@@ -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;
}