diff --git a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/data/PersonNote.java b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/data/PersonNote.java index fe2be4e..af41c7c 100644 --- a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/data/PersonNote.java +++ b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/data/PersonNote.java @@ -22,9 +22,9 @@ public class PersonNote { @ManyToOne private Person person; - private String notekey; + private String notekey = ""; - private String notetext; + private String notetext = ""; public PersonNote() { } diff --git a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/PersonEditDetails.java b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/PersonEditDetails.java index 2ab6407..9eee54f 100644 --- a/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/PersonEditDetails.java +++ b/src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/components/PersonEditDetails.java @@ -290,7 +290,8 @@ public class PersonEditDetails extends HorizontalLayout { && (binder.hasChanges() || contactLayout.hasChanges() || relationshipLayout.hasChanges() - || adressLayout.hasChanges()); + || adressLayout.hasChanges() + || notes.hasChanges()); } }