Skip to content

Commit 3ecb3e2

Browse files
committed
Webservice: Add support for send_mail param in save_user webservice - refs BT#21194
1 parent 872bc46 commit 3ecb3e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main/inc/lib/webservices/Rest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1880,6 +1880,7 @@ public function addUser($userParam): array
18801880
$hr_dept_id = 0;
18811881
$original_user_id_name = $userParam['original_user_id_name'];
18821882
$original_user_id_value = $userParam['original_user_id_value'];
1883+
$sendMail = (empty($userParam['send_mail']) ? false : true);
18831884

18841885
$extra_list = isset($userParam['extra']) ? $userParam['extra'] : [];
18851886
if (isset($userParam['language'])) {
@@ -1916,7 +1917,10 @@ public function addUser($userParam): array
19161917
$auth_source,
19171918
$expiration_date,
19181919
$active,
1919-
$hr_dept_id
1920+
$hr_dept_id,
1921+
[],
1922+
'',
1923+
$sendMail
19201924
);
19211925

19221926
if (empty($userId)) {

0 commit comments

Comments
 (0)