default value of date field is not saved when edit permissions not set.
| Project: | Date |
| Version: | 6.x-2.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi.
Please have a look at
http://drupal.org/node/334945#comment-2185060
This is fixed for text CCK fields, but the date field does not work.
Test case:
*create a cck date field.
*set default value to "today" (or anything else)
*set field permissions for a user to be able to view the field, but forbid editing.
*as this user, create content of this type - you shouldn't see the date CCK field, but theoretically the default value should be written. - but it is not.
the database field is empty.
This is serious, my webpage requires the following: I want to have a form with some values creatable by users, and there should be other values (like the creation timestamp - therefore the date field) which shouldn't be editable. It should be todays date, and never again changable by the user.
This is not possible, because the date field is ignored when edit permission is not set.
Maybe you can reuse some of the code in the link above - they fixed it for the text fields.
Thanks

#1
hm. Anyone reading this?