How to replicate:

Create a form in which a date_combo element is nested within other form elements with #tree set to true.

What will happen:

The date value will fail to be stored. The field will be empty after saving.

The problem seems to be that date_combo_validate assumes that the field name and delta will be found in #parents[0] and #parents[1], respectively. This assumption won't be valid if the field is within a tree structure.

Comments

noah@groups.drupal.org’s picture

StatusFileSize
new646 bytes
new646 bytes

Here's a patch rolled against 5.x-2.x-dev (http://drupal.org/node/215468), and another one rolled against 5.x-2.3.

arlinsandbulte’s picture

Status: Active » Closed (won't fix)

I'm just going to close this issue out for now.
5.x is quickly becoming obsolete and there has been no additional replies or support for this issue.

noah@groups.drupal.org’s picture

I'm sure there are plenty of people still running 5.x sites out there - how about that patch that I created?

Thanks.

noah@groups.drupal.org’s picture

I'm sure there are plenty of people still running 5.x sites out there - how about that patch that I created?

Thanks.