From 43b8db9c8419ec6e6fa9dac94a03ffddde0fe270 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 15 Jan 2024 10:15:46 +0100 Subject: [PATCH] #12156 also mail added notification on create --- .../include/functions_notifications.php | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pandora_console/include/functions_notifications.php b/pandora_console/include/functions_notifications.php index 9e7db33bae..78b5facde4 100644 --- a/pandora_console/include/functions_notifications.php +++ b/pandora_console/include/functions_notifications.php @@ -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, - ] - ); }