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

add software categories properly for select

parent 4ca9812b
......@@ -36,7 +36,9 @@ class ListAll
$categories = $this->softwareService->getSoftwareCategories();
return $this->view->render($res, 'schools/software.twig', [
'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