Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
gredu_labs
Commits
8240a31e
Commit
8240a31e
authored
Mar 03, 2016
by
Georgios Tsakalos
Browse files
add software categories properly for select
parent
4ca9812b
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/schools/src/Action/Software/ListAll.php
View file @
8240a31e
...
...
@@ -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
),
]);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment