Soft limit is used for all fields without truncate_setting setting in 2.0.0-rc2

Created on 6 May 2022, about 2 years ago
Updated 24 March 2023, over 1 year ago

Problem/Motivation

After release 2.0.0-rc2 all fields (string_textfield, text_textfield, link_default, linkit) that don't support truncate_setting setting ("Hard limit" option) began to use "Soft limit" logic. See changes in https://www.drupal.org/node/2916687 β†’ .
It breaks user's restrictions of the existing sites - users are able to add strings of any length.

Steps to reproduce

- Update module to 2.0.0-rc2.
- Type long string to the existing string_textfield field.

Actual behaviour:
Field summary shows: "Content limited to 150 characters, remaining: -50"

Expected behaviour:
Field summary shows: "Content limited to 150 characters, remaining: 0"

Proposed resolution

Need to provide ability to change Hard/Soft limit for any fields (In this case Soft limit should be an optional parameter for string_textfield etc. fields not to break existing sites).
Or use Hard limit logic for fields that don't have ability to change such option.

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

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

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.69.0 2024