aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2025-04-10 08:27:03 +0200
committerGitHub <noreply@github.com>2025-04-10 08:27:03 +0200
commite94fe91cd1e1d152c6126f3304890ca767ba908a (patch)
tree3f9eb7f27629cf48f56a4027bd69ea2a73a644dd
parent6c8047ac698c38a8a75b07f824a4a0eccf9542f8 (diff)
parentaa34f2f4571b2512ebd90e61e1f1cd6d9d50ebef (diff)
downloadnextcloud-server-e94fe91cd1e1d152c6126f3304890ca767ba908a.tar.gz
nextcloud-server-e94fe91cd1e1d152c6126f3304890ca767ba908a.zip
Merge pull request #52082 from nextcloud/default-navigation-reuse
-rw-r--r--lib/private/NavigationManager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php
index 83d26c7ca63..c2125bc6f8a 100644
--- a/lib/private/NavigationManager.php
+++ b/lib/private/NavigationManager.php
@@ -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;
}
}
}