- Issue created by @Odai Atieh
- Status changed to Needs review
6 months ago 1:49pm 20 December 2023 - Open on Drupal.org βCore: 10.1.0-alpha1 + Environment: PHP 7.4 & MySQL 5.7last update
6 months ago Waiting for branch to pass
I faced an issue when I used Webform Workflows Element β module which adds workflow to my webform, so when I open the submission the below warning appeared.
Warning: Undefined array key "#type" in bootstrap_barrio_preprocess_form_element() (line 503 of themes/contrib/bootstrap_barrio/bootstrap_barrio.theme).
I used the below:
Drupa;l 10.1.5
Bootstrap barrio 5.5.14
Webform 6.2.0
Webform workflows element 1.0.0-alpha3
1- Install webform module.
2- Install webform workflows element module.
3- Create a new webform and add workflow to it.
4- Test the webform and add some submissions.
5- View any submission.
6- The above warning will appear.
I suggest add extra checks in hook_preprocess_form_element.
Needs review
5.5
Code