fix creation of custom field without cfgroup id

This commit is contained in:
2015-11-30 21:31:58 +01:00
parent 2401270754
commit c9ca7c1e1b
4 changed files with 19 additions and 7 deletions

View File

@@ -41,9 +41,15 @@
<ul class="record_actions">
<li>
{% if entity.customFieldsGroup is not null %}
<a href="{{ path('customfieldsgroup_show', { 'id': entity.customFieldsGroup.id }) }}" class="sc-button btn-reset">
{{ 'Back to the group'|trans }}
</a>
{% else %}
<a href="{{ path('customfieldsgroup') }}" class="sc-button btn-reset">
{{ 'Back to the list'|trans }}
</a>
{% endif %}
</li>
</ul>
{% endblock %}