mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-08 21:38:21 +00:00
fix(0.2.2): issue #49 (null pointer exception with optional @OneToOne relationships).
This commit is contained in:
parent
5209185ba2
commit
daba2510db
@ -1,4 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
**0.2.2**
|
||||||
|
- Fixed #49
|
||||||
|
|
||||||
**0.2.1**
|
**0.2.1**
|
||||||
- Fixed #40
|
- Fixed #40
|
||||||
- Changed license from GPL v3 to MIT
|
- Changed license from GPL v3 to MIT
|
||||||
|
2
pom.xml
2
pom.xml
@ -11,7 +11,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<groupId>tech.ailef</groupId>
|
<groupId>tech.ailef</groupId>
|
||||||
<artifactId>snap-admin</artifactId>
|
<artifactId>snap-admin</artifactId>
|
||||||
<version>0.2.1</version>
|
<version>0.2.2</version>
|
||||||
<name>SnapAdmin</name>
|
<name>SnapAdmin</name>
|
||||||
<description>SnapAdmin is an auto-generated CRUD admin panel for Spring Boot/JPA apps</description>
|
<description>SnapAdmin is an auto-generated CRUD admin panel for Spring Boot/JPA apps</description>
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
<th:block th:if="${field.isForeignKey()}">
|
<th:block th:if="${field.isForeignKey()}">
|
||||||
<div th:replace="~{snapadmin/fragments/forms :: input_autocomplete(field=${field}, value=${
|
<div th:replace="~{snapadmin/fragments/forms :: input_autocomplete(field=${field}, value=${
|
||||||
create ? (params != null ? params.getOrDefault(field.getName(), '') : '')
|
create ? (params != null ? params.getOrDefault(field.getName(), '') : '')
|
||||||
: (object != null ? object.traverse(field).getPrimaryKeyValue() : '' )
|
: (object != null && object.traverse(field) != null ? object.traverse(field).getPrimaryKeyValue() : '' )
|
||||||
})}">
|
})}">
|
||||||
</div>
|
</div>
|
||||||
</th:block>
|
</th:block>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user