- Issue created by @arousseau
- Assigned to arousseau
- Merge request !5Added condition to avoid notice on undefined webform submission data array key. → (Open) created by arousseau
- Status changed to Needs review
8 months ago 1:19pm 24 April 2024
When downloading attachments from a submission, an error occurs if an attachment webform element's #access property was set to FALSE.
- Create a webform
- Add an attachment element to it (like a managed_file element)
- Create and attach a webform handler that sets the #access property to FALSE on this element (or maybe prevent access to it through its configuration, I did not test it that way)
- Try downloading all the files using this module
Modify \Drupal\webform_all_download\Controller\WebformDownloadAllController::download_download()
to add an isset() check before trying to access the element's key in the webform submission data array.
Needs review
1.0
Code