Problem/Motivation

TextLongItem and StringLongItem both inherit the 'max_length' settings from their base field. But its not used anywhere but it is configurable in the user interface.

Proposed resolution

Remove the setting form TextLongItem and StringLongItem.

Remaining tasks

User interface changes

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webflo’s picture

Status: Active » Needs review
FileSize
2.39 KB
webflo’s picture

Status: Needs review » Needs work

The last submitted patch, 1: stringitem-max-length-2380391-1.patch, failed testing.

Status: Needs work » Needs review
jibran’s picture

Priority: Normal » Critical

So it is a critical then cuz it blocks a critical

chx’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, this is a very simple and nice fix.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

This issue addresses a critical bug and is allowed per https://www.drupal.org/core/beta-changes. Committed d8776af and pushed to 8.0.x. Thanks!

  • alexpott committed d8776af on 8.0.x
    Issue #2380391 by webflo: Fix storage settings for TextLongItem and...
yched’s picture

Title: Fix storage settings for TextLongItem and StringLongItem » Fix storage settings StringLongItem

Nice - however, contrary to what the issue title says, this was only about StringLongItem ?
TextLongItem doesn't have the issue (doesn't inherit from TextItem), and the patch touched nothing there.

Also, the config schema for storage settings needs to be updated accordingly - opened #2381079: Adjust storage_settings schema for string_long field type

MrHaroldA’s picture

I might be completely wrong here, but StringLongItem extends StringItem, but removes the max_length restrictions? Shouldn't that be the other way araound: the least restrictive as base?

... or an abstract StringItemBase as base, and extend that into StringItem and StringLongItem?

I've attatched a patch of how I think it should be, but again: I'm a nOOP, pun intended ;)

MrHaroldA’s picture

FileSize
4.76 KB

Oops ... missed a spot. The comment was still referring to numeric fields.

chx’s picture

I'd recommend opening a new issue cos the patch on a fixed issue will get overlooked.

MrHaroldA’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.