Closed (fixed)
Project:
Event
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2004 at 17:09 UTC
Updated:
31 Oct 2004 at 19:20 UTC
The "event_create_query" function that is used to define the sql query that updates the database currently uses a test of the form
if ($node->$field) {
$fields[]=$field
}
in order to identify the fields to modify in the database. But this breaks if the field has been modified to have a value of 0, since then the modified field does not get incorporated. I replaced it with
if (isset($node->$field)) {
$fields[]=$field
}
which appears to fix the problem.
Comments
Comment #1
killes@www.drop.org commentedThanks. Due to the imminent release of Drupal 4.5 I only fixed this in the cvs version.
Comment #2
(not verified) commented