As per: http://drupal.org/node/968326, Driven NEP (Node Edition Policy) sets FAPI #access=FALSE to disallow modification of certain node parameters on the edit form (rather, forcing user to use comment driven or another driven method). While this works on most other tested CCK fields, Date fields seem to have an issue when a date field is set to required.

The technical details go a bit above my head, but see comment_driven issue linked above for more information, it seems arhak has a pretty solid handle on them.

I've attached a patch that implements arhak's suggestion against 2.6. Let me know if this makes sense, and I can re-roll against CVS head.

CommentFileSizeAuthor
date_fix_nep_driven.patch473 bytesobrienmd

Comments

obrienmd’s picture

Status: Active » Needs review

Sorry, setting to needs review.

obrienmd’s picture

I should probably also mention that this does solve the NEP issue (the attached patch).

arhak’s picture

subscribing

also note that I don't recall whether $element['#access'] is always populated by FAPI, if so, it wouldn't be needed to check isset($element['#access']) and directly jumping into !$element['#access'] would be valid

arhak’s picture

BTW, Driven NEP is a sub-module of Driven API

damienmckenna’s picture

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

Unfortunately the D6 version of this module is no longer supported, but we appreciate the time you put into this. If this problem is relevant for D7 too, please reopen the issue. Thanks.