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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ before starting to add changes. Use example [placed in the end of the page](#exa

## [Unreleased]

- Updated Maestro notification handler assignment message format.
- Updated `os2forms_fbs_handler` to use latest endpoints and operations.

## [3.21.0] 2024-12-17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ final class MaestroNotificationHandler extends WebformHandlerBase {
public const NOTIFICATION = 'notification';

public const TYPE = 'type';
public const FORMAT = 'format';
public const SENDER_LABEL = 'sender_label';
public const NOTIFICATION_ENABLE = 'notification_enable';
public const NOTIFICATION_RECIPIENT = 'notification_recipient';
Expand Down Expand Up @@ -153,7 +154,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $formStat
}
$form[self::NOTIFICATION][$notificationType][self::NOTIFICATION_CONTENT] = [
'#type' => 'text_format',
'#format' => 'restricted_html',
'#format' => $this->configuration[self::NOTIFICATION][$notificationType][self::NOTIFICATION_CONTENT][self::FORMAT] ?? 'restricted_html',
'#title' => $this->t('Message'),
'#default_value' => $content ?? self::TOKEN_MAESTRO_TASK_URL,
'#description' => $this->t('The actual notification content. Must contain the <code>@token_maestro_task_url</code> token which is the URL to the Maestro task.',
Expand Down
Loading