diff --git a/modules/dashboard/php/NDB_Form_dashboard.class.inc b/modules/dashboard/php/NDB_Form_dashboard.class.inc index c51b14b79e4..1b6845c2e38 100644 --- a/modules/dashboard/php/NDB_Form_dashboard.class.inc +++ b/modules/dashboard/php/NDB_Form_dashboard.class.inc @@ -89,13 +89,14 @@ class NDB_Form_Dashboard extends NDB_Form $useProjects = $config->getSetting('useProjects'); $this->tpl_data['useProjects'] = $useProjects; if ($useProjects == "true") { - $projects = $config->getSetting('Projects'); - foreach ($projects['project'] as $project) { + $projects = Utility::getProjectList(); + foreach ($projects as $projectID => $project) { + $projectInfo = $config->getProjectSettings($projectID); $this->createProjectProgressBar( - $project['id'], - $project['title'], - $project['recruitmentTarget'], - $this->getTotalRecruitmentByProject($project['id']) + $projectID, + $projectInfo['Name'], + $projectInfo['recruitmentTarget'], + $this->getTotalRecruitmentByProject($projectID) ); } }