mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Copy all email alerts to default contact (#8178)
* feature: Copy all email alerts to default contact * change in SQL and add check as requested * Rename 233.sql to 234.sql * tab removing
This commit is contained in:
@@ -317,6 +317,11 @@ function GetContacts($results)
|
||||
}
|
||||
}
|
||||
|
||||
# Copy all email alerts to default contact if configured.
|
||||
if (!isset($tmp_contacts[$config['alert']['default_mail']]) && ($config['alert']['default_copy'])) {
|
||||
$tmp_contacts[$config['alert']['default_mail']] = '';
|
||||
}
|
||||
|
||||
# Send email to default contact if no other contact found
|
||||
if ((count($tmp_contacts) == 0) && ($config['alert']['default_if_none']) && (!empty($config['alert']['default_mail']))) {
|
||||
$tmp_contacts[$config['alert']['default_mail']] = '';
|
||||
|
Reference in New Issue
Block a user