Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [UNRELEASED]

### Fixed

- Fix missing attachment from notification

## [1.8.10] - 2025-12-05

### Fixed
Expand Down
5 changes: 3 additions & 2 deletions inc/notificationevent.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static function raiseEvent($event, $item, $options = [], $label = '')

$options['entities_id'] = 0; //New code
$notificationtarget = NotificationTarget::getInstance($item, $event, $options);
if (!$notificationtarget) {
if (!$notificationtarget || !($notificationtarget instanceof PluginMreportingNotificationTargetNotification)) {
return false;
}

Expand All @@ -76,6 +76,7 @@ public static function raiseEvent($event, $item, $options = [], $label = '')
$notificationtarget->setMode($data['mode']);
$notificationtarget->setEvent($eventClass);
$notificationtarget->clearAddressesList();
$notificationtarget->addDataForTemplate($event, $options);

//Process more infos (for example for tickets)
$notificationtarget->addAdditionnalInfosForTarget();
Expand Down Expand Up @@ -126,7 +127,7 @@ public static function raiseEvent($event, $item, $options = [], $label = '')
$users_infos,
$options,
),
[],
$notificationtarget->additionalData,
);
} else {
$notificationtarget->getFromDB($target['id']);
Expand Down
Loading