Browse Source

Fixed escaping url in template in sonata_type_model_autocomplete, fixes #3011

Andrej Hudec 10 years ago
parent
commit
5f51bc6128
1 changed files with 1 additions and 1 deletions
  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