Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
7da27168
Commit
7da27168
authored
May 28, 2021
by
Hamza HRAMCHI
Browse files
FIX #16956 TIME 0:10 otp: Fix phone is null + senders is undefined
parent
1b9bfb8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/frontend/app/visa/externalVisaWorkflow/createExternalUser/create-external-user.component.ts
View file @
7da27168
...
...
@@ -148,7 +148,7 @@ export class CreateExternalUserComponent implements OnInit {
this
.
userOTP
.
firstname
=
data
.
firstname
;
this
.
userOTP
.
lastname
=
data
.
lastname
;
this
.
userOTP
.
email
=
data
.
email
;
this
.
userOTP
.
phone
=
phone
!==
undefined
?
phone
.
replace
(
/
(
|
\.
|
\-)
/g
,
''
).
replace
(
'
0
'
,
'
+33
'
)
:
''
;
this
.
userOTP
.
phone
=
phone
!==
null
?
phone
.
replace
(
/
(
|
\.
|
\-)
/g
,
''
).
replace
(
'
0
'
,
'
+33
'
)
:
''
;
}),
catchError
((
err
:
any
)
=>
{
this
.
notify
.
handleSoftErrors
(
err
);
...
...
@@ -171,7 +171,7 @@ export class CreateExternalUserComponent implements OnInit {
data
.
recipients
.
forEach
((
element
:
any
)
=>
{
this
.
setCorrespondentsShorcuts
(
element
,
'
recipient
'
);
});
}
else
{
}
else
if
(
data
.
senders
!==
undefined
)
{
data
.
senders
.
forEach
((
element
:
any
)
=>
{
this
.
setCorrespondentsShorcuts
(
element
,
'
sender
'
);
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment