Closed (fixed)
Project:
Color Field
Version:
3.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2026 at 13:16 UTC
Updated:
14 Jul 2026 at 00:20 UTC
Jump to comment: Most recent
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.
Display an empty value instead of crashing the whole page if a color field ends up containing an invalid color.
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
Comment #3
dieterholvoet commentedComment #4
anybodyThanks, nice one! Should this get tests? RTBC from my side!
Comment #5
mandclu commentedComment #7
mandclu commentedThanks for the work here. Merged in, and I'll roll a new release with these changes.