Browse Source

fixed deprecation issue

get() is deprecated since version 2.1 and will be removed in 2.3. Access the public property 'vars' instead. in /vendor/symfony/symfony/src/Symfony/Component/Form/FormView.php on line 116
simon chrzanowski 12 years ago
parent
commit
93e6e63b4e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Resources/views/CRUD/base_list.html.twig

+ 1 - 1
Resources/views/CRUD/base_list.html.twig

@@ -193,7 +193,7 @@ file that was distributed with this source code.
                     <div>
                     <div>
                         {% for filter in admin.datagrid.filters %}
                         {% for filter in admin.datagrid.filters %}
                             <div class="clearfix">
                             <div class="clearfix">
-                                <label for="{{ form.children[filter.formName].children['value'].get('id') }}">{{ admin.trans(filter.label) }}</label>
+                                <label for="{{ form.children[filter.formName].children['value'].vars.id }}">{{ admin.trans(filter.label) }}</label>
                                 {{ form_widget(form.children[filter.formName].children['type'], {'attr': {'class': 'span8 sonata-filter-option'}}) }}
                                 {{ form_widget(form.children[filter.formName].children['type'], {'attr': {'class': 'span8 sonata-filter-option'}}) }}
                                 {{ form_widget(form.children[filter.formName].children['value'], {'attr': {'class': 'span8'}}) }}
                                 {{ form_widget(form.children[filter.formName].children['value'], {'attr': {'class': 'span8'}}) }}
                             </div>
                             </div>