Maxlength on text format field causes TypeError

Created on 22 April 2025, 11 days ago

Problem/Motivation

mb_substr() needs a string as first argument. When using the text format field, the first argument of mb_subsctr() is an array.

Steps to reproduce

Create a text format field with max length. Try to edit the form.

Proposed resolution

Check if value is a string, add additional array handling when needed.

🐛 Bug report
Status

Active

Version

6.2

Component

Code

Created by

🇧🇪Belgium jurgenr

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

Comments & Activities

Production build 0.71.5 2024