Hi guys,
Wonderful job on this module. Saved me all sorts of headaches. However, there is one issue that I just can't seem to get to the bottom of.
When I add a series of dates, the instances for those dates are automatically created as promised. If I delete one of those dates from icalfield, the node instance representing that date is automatically deleted. So far so good. The issue comes in when I remove ALL date rules from the icalfield. When I do this, none of the instances representing these dates are removed.
Diving into the code, I see the function pruneOrphanedRules in icalinstance.processor.inc which it would appear is supposed to take over in this case. The problem for me comes in here:
$ical_field_data = icalfield_filter_empty($this->eventNode->$ical_field_name);
foreach ($ical_field_data as $ical_field_instance) {
$rule_ids[] = $ical_field_instance['ical_id'];
}
The problem is that $ical_field_instance['ical_id'] is empty every time because it has already been removed from the parent node. It is null. So this ends this function at this point every time.
If you could shed a bit of light on this issue it would be a huge help. Thanks!