Explorar o código

Fixed escaping url in template in sonata_type_model_autocomplete, fixes #3011

Andrej Hudec %!s(int64=10) %!d(string=hai) anos
pai
achega
5f51bc6128
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Resources/views/Form/form_admin_fields.html.twig

+ 1 - 1
Resources/views/Form/form_admin_fields.html.twig

@@ -281,7 +281,7 @@ file that was distributed with this source code.
                 minimumInputLength: {{ minimum_input_length }},
                 multiple: {{ multiple ? 'true' : 'false' }},
                 ajax: {
-                    url:  "{{ url ?: url(route.name, route.parameters|default([])) }}",
+                    url:  "{{ url ?: url(route.name, route.parameters|default([]))|e('js') }}",
                     dataType: 'json',
                     quietMillis: 100,
                     data: function (term, page) { // page is the one-based page number tracked by Select2