Commit 0c32552a authored by mattwire's avatar mattwire
Browse files

Merge branch 'repeat-by-end-date' into 'master'

Repeating events by end date

See merge request !1
parents e9e48f1e c40ba709
......@@ -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