This commit is contained in:
Francesco
2023-09-20 22:59:21 +02:00
parent 82311fd23e
commit 00a3ff53f0
3 changed files with 12 additions and 1 deletions

View File

@@ -33,7 +33,7 @@
<!-- data-row-field fragment -->
<th:block th:fragment="data_row_field(field, object)">
<th:block th:if="${field.getConnectedType() != null}">
<th:block th:if="${field.getConnectedType() != null && object.traverse(field) != null}">
<a th:href="|/dbadmin/model/${field.getConnectedType().getName()}/show/${object.traverse(field).getPrimaryKeyValue()}|">
<span th:text="${object.has(field) ? object.traverse(field).getPrimaryKeyValue() : 'NULL'}"></span>
</a>