From 1b4bb4f7bcddc30e8179cec222c0660ffe94e07d Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 5 Apr 2018 08:11:19 +0200 Subject: [PATCH] fix deprecations: flip content of choice type --- Controller/ReportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ReportController.php b/Controller/ReportController.php index 5dd97c998..5459be72f 100644 --- a/Controller/ReportController.php +++ b/Controller/ReportController.php @@ -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();