Skip to content

Commit 346862d

Browse files
committed
Update backends.service.ts
1 parent 1470cd2 commit 346862d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/backends/backends.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class BackendsService extends AbstractQueueProcessor {
165165
const result = {};
166166
for (const identity of identities) {
167167
//convertion tableau employeeNumber
168-
if (identity.identity.primaryEmployeeNumber !== null) {
168+
if (identity.identity.primaryEmployeeNumber !== '' && identity.identity.primaryEmployeeNumber !== null) {
169169
identity.identity.employeeNumber = identity.identity.primaryEmployeeNumber;
170170
} else {
171171
//on prend la premiere pour envoyer une chaine et non un tableau pour la compatibilité ldap
@@ -213,7 +213,7 @@ export class BackendsService extends AbstractQueueProcessor {
213213
});
214214
}
215215
// cas des fusion l employeeNumber doit etre celui de l identite primaire
216-
if (identity.primaryEmployeeNumber !== null) {
216+
if (identity.primaryEmployeeNumber !== null && identity.primaryEmployeeNumber !== '') {
217217
identity.inetOrgPerson.employeeNumber = identity.primaryEmployeeNumber;
218218
} else {
219219
//on prend la premiere pour envoyer une chaine et non un tableau pour la compatibilité ldap

0 commit comments

Comments
 (0)