Skip to content

Commit

Permalink
Merge pull request #192 from pedroresende/EZP-25485
Browse files Browse the repository at this point in the history
EZP-25485 - eZ Demo with video block but no content will return error 500
  • Loading branch information
yannickroger committed Feb 23, 2016
2 parents ed6ed53 + 2f746e4 commit 394b97f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Resources/views/block/video.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
<h2>{{ block.name }}</h2>
</div>
{% endif %}
{{ render(
controller(
"ez_content:viewLocation",
{
"locationId": valid_items[0].locationId,
"viewType": "block_item",
"params": {"block_id": block.id, "block_name": block.name}
}
)
) }}
{% if valid_items[0] is defined %}
{{ render(
controller(
"ez_content:viewLocation",
{
"locationId": valid_items[0].locationId,
"viewType": "block_item",
"params": {"block_id": block.id, "block_name": block.name}
}
)
) }}
{% endif %}
</div>

0 comments on commit 394b97f

Please sign in to comment.