Problem/Motivation
When you create a webform field with for example a "Checkboxes" element and link it to an "unlimited" textfield. Multiple errors are throw by checkMaxFieldSizeExceeded and substr becaus they both expect a String and the value that webform returns is an Array.
Steps to reproduce
Make a webform with a "Checkboxes" field and try to link it to an "unlimited" textfield in an Entity
Proposed resolution
Check if the value is an Array before doing the "checkMaxFieldSizeExceeded" check.
See my patch for a proposed solution
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3218044-issue-with-checkmaxfieldsizeexceeded.patch | 1.57 KB | jeroenbegyn |
Issue fork webform_content_creator-3218044
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:
- 3218044-issue-with-checkmaxfieldsizeexceeded
changes, plain diff MR !1
Comments
Comment #3
jeroenbegyn commentedComment #4
hardik_patel_12 commentedI have tried the above patch and it seems to be working for the multivalue text field in my case.
Thanks, @jeroenbegyn for the patch.
Comment #5
jeroenbegyn commentedComment #6
joaomarques736 commentedHello jeroenbegyn,
Thank you for your patch. It is already applied in 2.0.x branch (2.0.3).
Best regards.
Comment #7
joaomarques736 commentedComment #8
joaomarques736 commented