Problem/Motivation

If a color field ends up containing an invalid value, the whole page crashes with an exception. Normally this shouldn't be possible since there's validation, but if this validation is bypassed/ignored by creating entities programatically, this could happen. It's not a common thing, but I think it wouldn't be a bad thing anyway to handle invalid field values more gracefully.

Proposed resolution

Display an empty value instead of crashing the whole page if a color field ends up containing an invalid color.

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

dieterholvoet created an issue. See original summary.

dieterholvoet’s picture

Status: Active » Needs review
anybody’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, nice one! Should this get tests? RTBC from my side!

mandclu’s picture

Version: 3.0.x-dev » 3.1.x-dev

mandclu’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the work here. Merged in, and I'll roll a new release with these changes.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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