- Issue created by @fox_01
- Merge request !11Added array_key_exists checking to WorkflowDefaultWidget.php โ (Open) created by fox_01
- ๐ฎ๐ณIndia chetan 11
chetan 11 โ made their first commit to this issueโs fork.
- Status changed to Needs review
11 months ago 8:13am 21 December 2023 - Status changed to Postponed: needs info
10 months ago 11:56am 1 February 2024 - ๐ณ๐ฑNetherlands johnv
The change seems fairly simple.
Bu ti am curious about the root cause. This can only happen if you have added 'additional fields' to the workflow.
Did you?
Please give details. - ๐ณ๐ฑNetherlands johnv
This would be the shorter version of the patch:
@@ -84,7 +82,7 @@ class WorkflowDefaultWidget extends WidgetBase { // Determine and add the attached fields. $attached_fields = WorkflowManager::getAttachedFields('workflow_transition', $wid); foreach ($attached_fields as $key => $attached_field) { - $element[$key] = $workflow_form[$key]; + $element[$key] = $workflow_form[$key] ?? 'Default Value'; }