From 71ce1b72f5e145ae3f62ceec96acbe03ffd71c58 Mon Sep 17 00:00:00 2001 From: Thibault Dockx <thibault.dockx@fusiondirectory.org> Date: Mon, 12 Jun 2023 09:54:03 +0100 Subject: [PATCH] :ambulance: Fix(sections) - proper section priority Adds proper section priorities. --- include/class_config.inc | 2 +- plugins/dashboard/pluginmanager/class_pluginsManager.inc | 2 +- plugins/dashboard/tasks/class_tasksDashboard.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/class_config.inc b/include/class_config.inc index 2b1bedbc6..e8eb7c8f0 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -1155,7 +1155,7 @@ class config } } unset($infos); - $this->data['SECTIONS']['personal'] = ['NAME' => _('My account'), 'PRIORITY' => 40]; + $this->data['SECTIONS']['personal'] = ['NAME' => _('My account'), 'PRIORITY' => 60]; $personal = []; foreach ($this->data['TABS']['USERTABS'] as $tab) { if ($plist->info[$tab['CLASS']]['plSelfModify']) { diff --git a/plugins/dashboard/pluginmanager/class_pluginsManager.inc b/plugins/dashboard/pluginmanager/class_pluginsManager.inc index 9274ab994..c9c6daaed 100644 --- a/plugins/dashboard/pluginmanager/class_pluginsManager.inc +++ b/plugins/dashboard/pluginmanager/class_pluginsManager.inc @@ -27,7 +27,7 @@ class pluginsManager extends simplePlugin 'plObjectType' => ['tasks'], 'plTitle' => _('Plugins Manager'), 'plIcon' => 'geticon.php?context=applications&icon=tasks-dashboard&size=48', - 'plSection' => ['Dashboard' => ['name' => _('Dashboard'), 'priority' => 50]], + 'plSection' => ['Dashboard' => ['name' => _('Dashboard'), 'priority' => 30]], 'plPriority' => 10, 'plDescription' => _('Provide a reporting mechanism of installed plugins'), 'plProvidedAcls' => [] diff --git a/plugins/dashboard/tasks/class_tasksDashboard.inc b/plugins/dashboard/tasks/class_tasksDashboard.inc index ea490ead7..bf4149c37 100644 --- a/plugins/dashboard/tasks/class_tasksDashboard.inc +++ b/plugins/dashboard/tasks/class_tasksDashboard.inc @@ -52,7 +52,7 @@ class tasksDashboard extends management 'plDescription' => _('Provide a reporting mechanism for tasks'), 'plTitle' => _('Tasks Dashboard'), 'plIcon' => 'geticon.php?context=applications&icon=tasks-dashboard&size=48', - 'plSection' => ['Dashboard' => ['name' => _('Dashboard'), 'priority' => 50]], + 'plSection' => ['Dashboard' => ['name' => _('Dashboard'), 'priority' => 30]], 'plPriority' => 10, 'plManages' => ['tasksGranular'], 'plProvidedAcls' => [], -- GitLab