Skip to content

Commit

Permalink
EZP-27819: Template exception when editing policies with no node and …
Browse files Browse the repository at this point in the history
…subtree limitation (#152)

(cherry picked from commit f37e328)
  • Loading branch information
glye committed Aug 14, 2018
1 parent ec40764 commit 0e3a699
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
<div>
<ul id="{{form.limitationValues.vars.id}}-selected-location">
{% for limitationValue in form.limitationValues.vars.value|split(',') %}
<li>
{{ render( controller( "ez_content:viewAction", {'locationId': limitationValue, 'viewType': '_platformui_content_name'} ) ) }}
</li>
{% if limitationValue is not empty %}
<li>
{{ render( controller( "ez_content:viewAction", {'locationId': limitationValue, 'viewType': '_platformui_content_name'} ) ) }}
</li>
{% endif %}
{% endfor %}
</ul>
</div>

0 comments on commit 0e3a699

Please sign in to comment.