Skip to content

Commit

Permalink
Merge pull request #277 from webhdx/fieldtype_view_proper_rendering
Browse files Browse the repository at this point in the history
EZP-28655: RelationList fieldtype view in AdminUI has invalid render call
  • Loading branch information
Łukasz Serwatka authored Dec 21, 2017
2 parents ada2be9 + ca69e11 commit e8f9c5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bundle/Resources/config/views.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ system:
controller: 'EzPlatformAdminUiBundle:ContentView:locationView'
template: '@EzPlatformAdminUi/content/locationview.html.twig'
match: true
embed:
preview_ezobjectrelationlist_row:
preview_ezobjectrelationlist_row:
default:
controller: 'EzPlatformAdminUiBundle:ContentView:locationView'
template: '@EzPlatformAdminUi\fieldtypes\preview\ezobjectrelationlist_row.html.twig'
match: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
</thead>
{% for contentId in field.value.destinationContentIds %}
<tr>
{{ render(controller('ez_content:viewAction', {'contentId': contentId, 'viewType': 'embed', 'noLayout': 1, 'layout': 'preview_ezobjectrelationlist_row'})) }}
{{ render(controller('ez_content:viewAction', {'contentId': contentId, 'viewType': 'preview_ezobjectrelationlist_row', 'layout': false})) }}
</tr>
{% endfor %}
</table>
Expand Down Expand Up @@ -386,7 +386,7 @@
</tr>
</thead>
<tr>
{{ render(controller('ez_content:viewAction', {'contentId': field.value.destinationContentId, 'viewType': 'embed', 'noLayout': 1, 'layout': 'preview_ezobjectrelationlist_row'})) }}
{{ render(controller('ez_content:viewAction', {'contentId': field.value.destinationContentId, 'viewType': 'preview_ezobjectrelationlist_row', 'layout': false})) }}
</tr>
</table>
</div>
Expand Down

0 comments on commit e8f9c5b

Please sign in to comment.