mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: reuse default navigation entry when updating navigation entries
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
b82245ddea
commit
aa34f2f457
1 changed files with 2 additions and 1 deletions
|
|
@ -110,9 +110,10 @@ class NavigationManager implements INavigationManager {
|
|||
}
|
||||
|
||||
private function updateDefaultEntries() {
|
||||
$defaultEntryId = $this->getDefaultEntryIdForUser($this->userSession->getUser(), false);
|
||||
foreach ($this->entries as $id => $entry) {
|
||||
if ($entry['type'] === 'link') {
|
||||
$this->entries[$id]['default'] = $id === $this->getDefaultEntryIdForUser($this->userSession->getUser(), false);
|
||||
$this->entries[$id]['default'] = $id === $defaultEntryId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue