Required when required not selected

robksawyer - August 2, 2009 - 03:49
Project:Colorpicker
Version:6.x-2.0-rc3
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

The colorpicker cck field is for some reason always required even though the required button is checked in the cck preferences. I've fixed this by commenting out the following code:

if ($item['value'] !== '#' && !preg_match('/^#(?:(?:[a-f\d]{3}){1,2})$/i', $item['value'])) {
//form_set_error($error_element, "'". check_plain($item['value']) ."'". t(' is not a valid hex color'));
}

 
 

Drupal is a registered trademark of Dries Buytaert.