Needs work
Project:
Date
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2012 at 20:58 UTC
Updated:
17 Jun 2012 at 18:14 UTC
Jump to comment: Most recent file
All date fields where display type is not 'date_default' or 'date_interval' are set to 'date_default' by the database update 7000 (even those that have been hidden). This causes the fields to be displayed as well as the following notice:
Notice: Undefined index: hidden in date_default_formatter_settings_summary() (line 114 of sites/all/modules/date/date_admin.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | date_hidden_fix_patch-1404494-7.patch.gz | 547 bytes | thinkyhead |
| #1 | date-hidden-fields-1404494.patch | 765 bytes | byrond |
Comments
Comment #1
byrond commentedThis patch adds 'hidden' as an exception of fields that are changed to the 'date_default' display.
Comment #2
karens commentedCommitted. Thanks!
Comment #4
tamerzg commentedI am getting this same error with latest dev. Problem is with 'date_default' which exists after D6 migration but is not returned by date_format_type_options().
Comment #5
karens commentedI have no idea what you are saying.
Comment #6
thinkyhead commentedNevermind this comment. See the next one for my solution.
Comment #7
thinkyhead commentedHere is a patch that will fix any hidden date fields that were improperly made 'default' during the period when date_update_7000 didn't have 'hidden' as an exception. This is a helpful alternative to having admins figure out that they need to edit the fields manually at admin/structure/types/manage/[type]/display.
Comment #9
thinkyhead commentedDarn. Well, that's the general idea. It's not catching some cases, so I'm still working on a definitive patch anyway.