I create a new CCK Date field type 'Schedule' and attach it to 2 'Event' content types.
When trying to copy the event dates to the Schedule field of the same content type, the target data type only allows (arbitrarily) one of the content types as a target.

This is because the content type selection code loops though field types, not content types when building the content option select form.

See patch for a working solution.

Note: timezones seems to be fubared afaik. The last hunk of the patch lets me copy w/o mangling the timezones. Probably shouldn't be included though.

This might be duplicate of http://drupal.org/node/302113, but they don't mention any of the preconditions fixed by this patch, so I'm not sure.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SocialNicheGuru’s picture

which file is this against?

arlinsandbulte’s picture

Status: Patch (to be ported) » Postponed (maintainer needs more info)

The referenced issue has been closed.
Is this still valid?

arlinsandbulte’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No followup after more than 2 months at "postponed (maintainer needs more info)".
Marking as closed.

ambereyes’s picture

Title: Event date import only works with non-shared target date field » Event date import fails to identify all target date fields
Version: 6.x-2.x-dev » 6.x-2.6
Status: Closed (fixed) » Needs review
FileSize
2.91 KB

This was never corrected. When you create date fields for more than one content type, the content_fields() function call in date_tools_copy_type_form and date_tools_copy_type_fields_form will only load one of the content types. This stops you from converting more than one event content type because the new ones with date fields will not show up as target types.

I rerolled the original patch for a more current version.

It is against the date_tools.event.inc in the date_tools folder.

jc1’s picture

Component: Date Copy » Code
Issue summary: View changes

Thanks for patch and info. Based on this, i deleted a new created content type. With one content type with date field only, i was finally able to convert event time to date field inside one node. So URL is the same, comments are here and it's possible to disable event module. Thanks alot.

DamienMcKenna’s picture

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.