mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
#12156 also mail added notification on create
This commit is contained in:
parent
5194bd165c
commit
43b8db9c84
@ -684,18 +684,20 @@ function notifications_set_user_label_status($source, $user, $label, $value)
|
|||||||
'id_user' => $user,
|
'id_user' => $user,
|
||||||
'id_source' => $source,
|
'id_source' => $source,
|
||||||
'enabled' => '1',
|
'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,
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user