소스 검색

Fixed the subrequests using the HelperController

Christophe Coevoet 14 년 전
부모
커밋
197d4d599d
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Resources/views/CRUD/edit_orm_many_to_one.html.twig
  2. 1 1
      Resources/views/CRUD/edit_orm_one_to_one.html.twig

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

@@ -27,7 +27,7 @@ file that was distributed with this source code.
             {% if field_description.options.edit == 'list' %}
                 <span id="field_widget_{{ field_element.vars.id }}" >
                     {% if admin.id(value) %}
-                        {% render 'SonataAdminBundle:Helper:getShortObjectDescription' with {
+                        {% render 'SonataAdminBundle:Helper:getShortObjectDescription' with {}, {
                             'code': field_description.associationadmin.code,
                             'objectId': admin.id(value),
                             'uniqid':  field_description.associationadmin.uniqid

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

@@ -26,7 +26,7 @@ file that was distributed with this source code.
             {% if field_description.options.edit == 'list' %}
                 <span id="field_widget_{{ field_element.vars.id }}" >
                     {% if admin.id(value) %}
-                        {% render 'SonataAdminBundle:Helper:getShortObjectDescription' with {
+                        {% render 'SonataAdminBundle:Helper:getShortObjectDescription' with {}, {
                             'code': field_description.associationadmin.code,
                             'objectId': admin.id(value),
                             'uniqid':  field_description.associationadmin.uniqid