The problem that is happening is that somehow when a "conditional" date field is unset that field's value does not properly get stored in the database.

This problem can be observed in the file: date/date_token.inc on line 39:
$item['value'] = trim($item['value']);

$item['value'] ends up being set to array('date' =>)
Here, trim function does not expect an array() to be passed to it.

If I were to set the appropriate condition so that I can edit the date field, then the resulting $item['value'] is not an array.
Therefore, this only happens when the date field is disabled (and possibly when hidden) by a conditional field.

Comments

thekevinday’s picture

This bug seems to vanish with the 2.x-dev version of conditional fields.

Once I spend enough time to confirm that this is the case, then I will close this bug report given that this problem now appears to be more of a conditional fields issue than a date issue.

damienmckenna’s picture

Component: Date CCK Field » Code
Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.