fix: [dashboards] fixed invalid recall of dashboard template

pull/5705/head
iglocska 2020-03-08 23:54:02 +01:00
parent 8d02332b31
commit 6773b8d799
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class DashboardsController extends AppController
throw new NotFoundException(__('Invalid dashboard template.'));
}
}
if (empty($userSettings)) {
if (empty($userSettings) && empty($dashboardTemplate)) {
$dashboardTemplate = $this->Dashboard->getDashboardTemplate($this->Auth->user());
}
if (empty($userSettings)) {