Invalid hex color
artwork - June 15, 2009 - 08:41
| Project: | Colorpicker |
| Version: | 6.x-2.0-rc3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | skilip |
| Status: | active |
Description
I add colorpicker field as cck field and it is "NOT required field" this is where error came.
'' is not a valid hex color
The default value is invalidWhy should I set default if I don't required this field I think I should have a choice to leave it blank.
This also happen in node/add when I try to create node it asked me to fill the color, I use unlimited filed, so it end up I have to put at least two color to add a node (unlimited field has two default field).

#1
I have the same problem, it seems to work properly if you avoid multiple values.
#2
I'll fix this this week
#3
#4
subscribing
#5
thank you! looking forward to the official 2.0 release party
#6
This patch fixes the validation bug
#7
Hmm, I applied the patch, and it does remove the validation error. However, now when I submit a node with an empty colorpicker value it automatically sets it to #FF0000.
#8
Isn't that the default value specified in the Content Fields settings page? Did you try leaving that empty?
#9
Yeah, the default value is blank for the content field settings field. Not sure where the FF0000 is coming from.