Issue with checkMaxFieldSizeExceeded and substr for multiple value fields

Created on 9 June 2021, over 3 years ago
Updated 29 April 2024, 8 months ago

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

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium jeroenbegyn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024