Commit 8240a31e authored by Georgios Tsakalos's avatar Georgios Tsakalos
Browse files

add software categories properly for select

parent 4ca9812b
...@@ -36,7 +36,9 @@ class ListAll ...@@ -36,7 +36,9 @@ class ListAll
$categories = $this->softwareService->getSoftwareCategories(); $categories = $this->softwareService->getSoftwareCategories();
return $this->view->render($res, 'schools/software.twig', [ return $this->view->render($res, 'schools/software.twig', [
'softwareArray' => $software, 'softwareArray' => $software,
'categories' => $categories 'categories' => array_map(function ($category) {
return ['value' => $category['id'], 'label' => $category['name']];
}, $categories),
]); ]);
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment