-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when editing entities with nullable @OneToOne relationships #49
Comments
Thanks! This should be an easy fix |
Awesome! I'm no expert in Thymeleaf but, if I have time, I'll also try make a small contribution and submit a PR :-) |
Also, while I'm here: awesome project man. |
Thank you, I really appreciate it! If you want to try and fix it you should do as follows: where you see the code
It also need to return the empty string if |
…OnetoOne relationships).
PR Submitted: #50 :-) |
Describe the bug
When an entity has a nullable @OnetoOne relationship with another entity, editing the entity leads to a Thymeleaf error (see stack trace below) and problems in displaying the edit page (see screenshot below).
Is the bug at startup before you perform any action?
No
Stacktrace
@entity code
application.properties
snapadmin.enabled=true
snapadmin.baseUrl=admin
snapadmin.modelsPackage=org.persons.entity
Additional context
When attempting to edit a Person without a Phone (ie. when encountering the above stack trace), the Edit page is cut off:
The text was updated successfully, but these errors were encountered: