Problem/Motivation
When a Translateable string is used in the webform directly, it breaks
Error: Cannot use object of type Drupal\Core\StringTranslation\TranslatableMarkup as array in webform_workflows_element_element_form_after_build() (line 256 of modules/contrib/webform_workflows_element/webform_workflows_element.module).
call_user_func_array() (Line: 1085)
Drupal\Core\Form\FormBuilder->doBuildForm() (Line: 571)
Drupal\Core\Form\FormBuilder->processForm() (Line: 321)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm() (Line: 84)
Drupal\webform\Element\Webform::preRenderWebformElement()
call_user_func_array() (Line: 107)
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3580222-50.diff | 595 bytes | makertimswis |
| #3 | diff3580222-1.diff | 682 bytes | makertimswis |
Issue fork webform_workflows_element-3580222
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
makertimswisI think it can be as easy as an in_array check
Comment #4
mably commentedHi @makertimswis, can you rebase your MR please? There are some conflicts.
Comment #6
makertimswisRebased on 2.x branch
Comment #8
mably commented@makertimswis could you provide a reproducible scenario from a fresh Drupal instance please?
Eventually configure your failing test case in your MR's Tugboat instance.
Comment #9
makertimswisSorry never done this
our client has propiratery settings that i cannot share 1 to 1
is a webform config export with written flow how it breaks enough, otherwise have to learn Tugboat etc.
Comment #12
mably commentedHi @makertimswis, can you give a try to MR 52 and see if it fixes your problem?
Comment #14
mably commented