From b61f81a8665818e7777e37f1476dab864ea347b1 Mon Sep 17 00:00:00 2001 From: Mateusz Nowaczyk Date: Fri, 17 Jun 2016 10:55:28 +0200 Subject: [PATCH 1/2] Append empty option if allow_clear set to true - required by select2.js --- Resources/views/Form/fields.html.twig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Resources/views/Form/fields.html.twig b/Resources/views/Form/fields.html.twig index e62b9d5..8d6caba 100644 --- a/Resources/views/Form/fields.html.twig +++ b/Resources/views/Form/fields.html.twig @@ -22,6 +22,9 @@ {% spaceless %} {% if value is iterable %} {% if allow_clear %} - + {% endif %} {% for id, label in value %} {% block tetranz_select2entity_widget_select_option %}