Skip to content

Commit 4d8b1b9

Browse files
authored
Merge pull request #10 from OS2Forms/feature/SUPP0RT-1184-os2forms-attachment-in-handler
SUPP0RT-1184: Allowed os2forms attachment element in handler
2 parents 3c3008b + 00f0c9f commit 4d8b1b9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ about writing changes to this log.
88

99
## [Unreleased]
1010

11+
* Allowed `os2forms_attachment` attachment element.
12+
1113
## [1.1.3] 04.07.2023
1214

1315
* Sanitized GetOrganized filenames.

src/Plugin/WebformHandler/GetOrganizedWebformHandler.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
107107
$form['general']['attachment_element'] = [
108108
'#type' => 'select',
109109
'#title' => $this->t('Attachment element'),
110-
'#options' => $this->getAvailableElementsByType(['webform_entity_print_attachment:pdf'], $elements),
110+
'#options' => $this->getAvailableElementsByType([
111+
'webform_entity_print_attachment:pdf',
112+
'os2forms_attachment',
113+
], $elements),
111114
'#default_value' => $this->configuration['general']['attachment_element'] ?? '',
112115
'#description' => $this->t('Choose the element responsible for creating response attachments.'),
113116
'#required' => TRUE,

0 commit comments

Comments
 (0)