Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions record.twig
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@
{{ attribute(record, key)|join(", ") }}
</p>

{% elseif record.fieldtype(key) not in ['templateselect'] and value != "" %}
{% elseif record.fieldtype(key) not in ['templateselect'] and key != "templatefields" and value != "" %}

<p><strong>{{ key }}: </strong>
{{ attribute(record, key) }}
{% if attribute(record, key) is iterable %}
{{ dump(attribute(record, key)) }}
Copy link
Owner

@Mikescops Mikescops Apr 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to dump in production !

  • Please consider this

{% else %}
{{ attribute(record, key) }}
{% endif %}
</p>

{% endif %}
Expand Down Expand Up @@ -119,4 +123,4 @@

<hr>

{% endblock main %}
{% endblock main %}