Skip to content

Commit

Permalink
OEL-1552: Use field api in template empty check.
Browse files Browse the repository at this point in the history
  • Loading branch information
drishu committed Jul 2, 2022
1 parent f7d1dbf commit b410547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/content/node--oe-sc-person--full.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<article{{attributes}}>
<div class="row">
<div class="col-12 col-lg-10 col-xl-9 col-xxl-8">
{% if content.oe_sc_person_additional_info|field_value is not empty %}
{% if not node.oe_sc_person_additional_info.isEmpty() %}
<h2 class="mb-4">{{ 'Additional information'|t }}</h2>
<div class="mb-4-5">
{{ content.oe_sc_person_additional_info|field_value }}
</div>
{% endif %}
{% if content.oe_sc_person_documents|field_value is not empty %}
{% if not node.oe_sc_person_documents.isEmpty() %}
<h2 class="mb-4">{{ 'Related documents'|t }}</h2>
<div class="mb-4-5">
{{ content.oe_sc_person_documents|field_value }}
Expand Down

0 comments on commit b410547

Please sign in to comment.