Przeglądaj źródła

Merge pull request #44178 from nextcloud/fix/noid/nav-init-add

fix(Navigation): ensure NavManager is inited when adding an entry
tags/v29.0.0beta3
Arthur Schiwon 3 miesięcy temu
rodzic
commit
10593d1847
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 4 usunięć
  1. 1
    4
      lib/private/NavigationManager.php

+ 1
- 4
lib/private/NavigationManager.php Wyświetl plik

@@ -94,6 +94,7 @@ class NavigationManager implements INavigationManager {
$this->closureEntries[] = $entry;
return;
}
$this->init();

$id = $entry['id'];

@@ -236,10 +237,6 @@ class NavigationManager implements INavigationManager {
]);
}

if ($this->appManager === 'null') {
return;
}

$this->defaultApp = $this->appManager->getDefaultAppForUser($this->userSession->getUser(), false);

if ($this->userSession->isLoggedIn()) {

Ładowanie…
Anuluj
Zapisz