From: Roland Häder Date: Wed, 31 Aug 2016 14:15:02 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d6bc14875f34d8f2d52c2b2bef875690f2212e0f;p=jjobs-ejb.git Please cherry-pick: - maybe use getManagedUser() ? --- diff --git a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java index 094e9c8..982da11 100644 --- a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java @@ -649,7 +649,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes // Set all data here to avoid user instance become detached again entry.setUserPasswordHistoryPasswordHash(managedUser.getUserEncryptedPassword()); - entry.setUserPasswordHistoryUser(managedUser); + entry.setUserPasswordHistoryUser(this.getManagedUser(user)); entry.setUserPasswordHistoryCreated(new GregorianCalendar()); // Persist it