]> git.mxchange.org Git - addressbook-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 5 Nov 2022 06:55:36 +0000 (07:55 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 5 Nov 2022 06:56:14 +0000 (07:56 +0100)
- updated to latest constructor changes (emailChangeStatus)

src/java/org/mxchange/addressbook/beans/user/email_address/AddressbookEmailChangeWebRequestBean.java

index 5300169e18675f799c8dd300db5e6e8f0e77fefb..93cc951ef12babc19e9ded9e6ea1841017cd44a8 100644 (file)
@@ -35,6 +35,7 @@ import org.mxchange.jcontacts.model.contact.Contact;
 import org.mxchange.jcoreee.utils.FacesUtils;
 import org.mxchange.jusercore.model.email_address.ChangeableEmailAddress;
 import org.mxchange.jusercore.model.email_address.EmailAddressChange;
+import org.mxchange.jusercore.model.email_address.status.EmailChangeStatus;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.email_address.UserEmailChangeSessionBeanRemote;
 import org.mxchange.juserlogincore.exceptions.UserPasswordMismatchException;
@@ -145,7 +146,11 @@ public class AddressbookEmailChangeWebRequestBean extends BaseAddressbookBean im
                }
 
                // Create change object, to save EJB calls, the hash is not generated here
-               final ChangeableEmailAddress emailChange = new EmailAddressChange(user, this.getEmailAddress());
+               final ChangeableEmailAddress emailChange = new EmailAddressChange(
+                                                                        user,
+                                                                        this.getEmailAddress(),
+                                                                        EmailChangeStatus.NEW
+                                                        );
 
                // Get base URL
                final String baseUrl = FacesUtils.generateBaseUrl();