4 files updated

This commit is contained in:
haburger 2024-12-11 14:09:39 +00:00
parent 06ff2bdecd
commit 76a7ac7695
6 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ if (inargs['submit'] && inargs['mobile'] && !inargs['mobile'].isEmpty()) {
return
}
String result
def patchBdy = "{\"contacts\":{\"mobile\":\"${inargs['mobile']?.trim()}\"},\"modificationComment\":\"added mobile number from user during request ${requestId}\"}"
// mobile is also stored without spaces
def patchBdy = "{\"contacts\":{\"mobile\":\"${inargs['mobile'].replaceAll('\\s', '')}\"},\"modificationComment\":\"added mobile number from user during request ${requestId}\"}"
try {
result = idmRestClient.patch(endPoint, patchBdy)
} catch(Exception e) {