#12156 also mail added notification on create

This commit is contained in:
Jonathan 2024-01-15 10:15:46 +01:00
parent 5194bd165c
commit 43b8db9c84
1 changed files with 11 additions and 9 deletions

View File

@ -684,18 +684,20 @@ function notifications_set_user_label_status($source, $user, $label, $value)
'id_user' => $user,
'id_source' => $source,
'enabled' => '1',
'also_mail' => '1',
]
);
return true;
} else {
return (bool) db_process_sql_update(
'tnotification_source_user',
[$label => $value],
[
'id_user' => $user,
'id_source' => $source,
]
);
}
return (bool) db_process_sql_update(
'tnotification_source_user',
[$label => $value],
[
'id_user' => $user,
'id_source' => $source,
]
);
}