Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ before starting to add changes. Use example [placed in the end of the page](#exa

## [Unreleased]

- [PR-202](https://github.com/OS2Forms/os2forms/pull/202)
- Removed non-digits from recipient id in Maestro digital post notifications.

## [4.1.0] 2025-06-03

- [PR-176](https://github.com/OS2Forms/os2forms/pull/176)
Expand Down
5 changes: 4 additions & 1 deletion modules/os2forms_forloeb/src/MaestroHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,10 @@ private function sendNotificationDigitalPost(
$senderLabel = $subject;
$messageLabel = $subject;

$recipientLookupResult = $this->digitalPostHelper->lookupRecipient($recipient);
// Remove all non-digits from recipient identifier.
$recipientIdentifier = preg_replace('/[^\d]+/', '', $recipient);

$recipientLookupResult = $this->digitalPostHelper->lookupRecipient($recipientIdentifier);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a suggestion which is related directly with the changed lines:

$actions = [
(new Action())
->setActionCode(SF1601::ACTION_SELVBETJENING)
Expand Down