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

Command icon 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

jeroenbegyn created an issue. See original summary.

jeroenbegyn’s picture

hardik_patel_12’s picture

I have tried the above patch and it seems to be working for the multivalue text field in my case.
Thanks, @jeroenbegyn for the patch.

jeroenbegyn’s picture

Status: Active » Needs review
joaomarques736’s picture

Hello jeroenbegyn,

Thank you for your patch. It is already applied in 2.0.x branch (2.0.3).

Best regards.

joaomarques736’s picture

Status: Needs review » Fixed
joaomarques736’s picture

Status: Fixed » Closed (fixed)