If set the time field to required, then I can not save the node, because I have some error messages:

Notice: Undefined index: #value in _form_validate() (line 1352 of /var/www/drupal7/includes/form.inc).
Notice: Undefined index: #value in _form_validate() (line 1353 of /var/www/drupal7/includes/form.inc).
Notice: Undefined index: #value in _form_validate() (line 1354 of /var/www/drupal7/includes/form.inc).
Time field is required.

The value of the time field is not empty, of course.

CommentFileSizeAuthor
#1 tree.patch461 bytesEverett Zufelt

Comments

Everett Zufelt’s picture

Title: Can not save the node, when the Time field is required » Fails #required validation
Status: Active » Needs review
StatusFileSize
new461 bytes

Give this patch a try. I believe that the problem is being caused because the element doesn't have #tree set to TRUE.

zoltán balogh’s picture

Status: Needs review » Needs work

It is not solved the problem.

Everett Zufelt’s picture

Status: Needs work » Fixed

Fixed with commit at http://drupalcode.org/project/cck_time.git/commit/75b0820

Available in release 7.x-1.0-beta3

Status: Fixed » Closed (fixed)

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