Fix bug in sysContacts email collection (#15325)

Also, include trace in log when an error occurs
This commit is contained in:
Tony Murray
2023-09-15 08:05:55 -05:00
committed by GitHub
parent 4b98bd7607
commit ba67d886c8
2 changed files with 2 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ class AlertUtil
$contacts = [];
foreach ($results as $result) {
$device = DeviceCache::get($result);
$device = DeviceCache::get($result['device_id']);
$email = $device->getAttrib('override_sysContact_bool')
? $device->getAttrib('override_sysContact_string')
: $device->sysContact;