Skip to content

338: Correctly inherit single files in MaestroInheritTask#339

Open
jekuaitk wants to merge 4 commits into
OS2Forms:developfrom
itk-dev:fix/338-correctly-inherit-single-files-in-maestro-inherit-task
Open

338: Correctly inherit single files in MaestroInheritTask#339
jekuaitk wants to merge 4 commits into
OS2Forms:developfrom
itk-dev:fix/338-correctly-inherit-single-files-in-maestro-inherit-task

Conversation

@jekuaitk

@jekuaitk jekuaitk commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Closes #338.

When the MaestroInheritTask attempts setting a default value containing a singular file it fails due to incorrect type.

PR ensures the values being set as default value, for any element implementing WebformManagedFileBase, is an array.

Note

A general cleanup of the MaestroInheritTask should be done. We should generally avoid static \Drupal:: calls, but that is out of scope for this fix.

@jekuaitk jekuaitk requested a review from rimi-itk June 30, 2026 07:18
Comment thread modules/os2forms_forloeb/src/Plugin/EngineTasks/MaestroWebformInheritTask.php Outdated
jekuaitk and others added 2 commits June 30, 2026 09:35
…InheritTask.php

Co-authored-by: Mikkel Ricky <rimi@aarhus.dk>
…InheritTask.php

Co-authored-by: Mikkel Ricky <rimi@aarhus.dk>
@jekuaitk jekuaitk requested a review from rimi-itk June 30, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebformInheritTask does not correctly inherit files

2 participants