fix deprecations: flip content of choice type

This commit is contained in:
nobohan 2018-04-05 08:11:19 +02:00
parent 4519a1c92c
commit 1b4bb4f7bc

View File

@ -138,7 +138,7 @@ class ReportController extends Controller
'csrf_protection' => false
))
->add('cFGroup', ChoiceType::class, array(
'choices' => $cFGroupsChoice,
'choices' => array_combine(array_values($cFGroupsChoice),array_keys($cFGroupsChoice)),
'choices_as_values' => true
))
->getForm();