Skip to content

Commit 3a361ba

Browse files
committed
1 parent 52e1706 commit 3a361ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/management/identities/identities-upsert.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ export class IdentitiesUpsertService extends AbstractIdentitiesService {
4949
);
5050
}
5151
//controle si l identité est fusionnée si c est la bonne à mettre à jour puisqu elle a 2 employeeNumber
52+
//bug #54 si primaryEmployeeNumber = "" considéré comme non null
5253
if (identity !== null){
53-
if (identity.primaryEmployeeNumber !== null && identity.primaryEmployeeNumber !== employeeNumber) {
54+
if (identity.primaryEmployeeNumber !== null && identity.primaryEmployeeNumber !== '' && identity.primaryEmployeeNumber !== employeeNumber) {
5455
throw new HttpException('Secondary identity', HttpStatus.SEE_OTHER);
5556
}
5657
}

0 commit comments

Comments
 (0)