Commit c40ba709 authored by Deepak Srivastava's avatar Deepak Srivastava
Browse files

fix for repeating events by end date

parent e9e48f1e
......@@ -159,7 +159,11 @@ class CRM_AdvancedEvents_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntit
}
$count = 0;
$this->recursion->count($initialCount);
if (empty($this->schedule['absolute_date'])) {
// When absolute_date is set start_action_offset is missing, and we
// don't need to set count. Calculation happens based on end-date (absolute_date)
$this->recursion->count($initialCount);
}
try {
$this->recursion->generateOccurrences();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment