Skip to content

Commit

Permalink
Notification missing setParsedSubject
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Dec 15, 2019
1 parent badce4c commit c05d747
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## 1.2.2 - 2019-12-15
### Fixed
- Notification missing setParsedSubject

## 1.2.1 - 2019-12-15
### Fixed
- Activity not always reported
Expand Down
3 changes: 2 additions & 1 deletion lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function prepare(INotification $notification, string $languageCode): INot
$l = $this->l10nFactory->get('analytics', $languageCode);
$parsedSubject = '';

//$this->logger->error('Notifier 89: '.$notification->getSubject());
//$this->logger->error('Notifier 90: '.$notification->getSubject());
switch ($notification->getSubject()) {
case NotificationManager::SUBJECT_THRESHOLD:
$parsedSubject = $l->t("Exception in Report '{report}'. The value of '{subject}' reached the threshold of '{rule} {value}'");
Expand Down Expand Up @@ -123,6 +123,7 @@ public function prepare(INotification $notification, string $languageCode): INot
]
);
$notification->setIcon($this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('analytics', 'app-dark.svg')));
$notification->setParsedSubject('analytics');
return $notification;
}
}

0 comments on commit c05d747

Please sign in to comment.