Closed (fixed)
Project:
Event
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2007 at 20:50 UTC
Updated:
3 Apr 2007 at 13:47 UTC
Looks like in event_calendar_data(), when the $nid object is added to the array, it is added by reference. This makes subsequent changes to $nid->event_state affect all instances. As a result, for events spanning more than one day, all parts are marked as "end".
This patch adds a drupal_clone() call which fixes the problem.
| Comment | File | Size | Author |
|---|---|---|---|
| event-module-state-clash-fix.patch | 945 bytes | umonkey |
Comments
Comment #1
umonkey commentedhttp://drupal.org/node/63239
http://drupal.org/node/85972
http://drupal.org/node/118760
Will anybody please fix this bug? First reported in May 2006, with patches and discussions, what's the problem?
Comment #2
killes@www.drop.org commentedthe problem is that I don't understand what the problem is. ;(
Comment #3
killes@www.drop.org commentedmodified patch applied.
Comment #4
umonkey commentedThank you!
Comment #5
(not verified) commented