fix update of client which was blanking out name details in certain scenario.
This commit is contained in:
@@ -112,7 +112,7 @@ public class Client extends AbstractAuditableCustom<AppUser, Long> {
|
||||
this.lastName = command.getLastname();
|
||||
}
|
||||
|
||||
if (command.isClientOrBusinessNameChanged()) {
|
||||
if (command.isClientOrBusinessNameChanged() && StringUtils.isNotBlank(command.getClientOrBusinessName())) {
|
||||
this.lastName = command.getClientOrBusinessName();
|
||||
this.firstName = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user