Skip to content

Commit

Permalink
CIVICRM-1223 Handle error when generate recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
agileware-pengyi committed Jul 21, 2019
1 parent e404656 commit 7aab8ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CRM/Core/BAO/RecurringEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,12 @@ public function generateRecursiveDates() {
}

$count = 1;
$this->recursion->generateOccurrences();
try {
$this->recursion->generateOccurrences();
} catch (Exception $e) {
CRM_Core_Error::statusBounce($e->getMessage());
return $recursionDates;
}
foreach ($this->recursion->occurrences as $result) {
$skip = FALSE;
if ($result == $this->recursion_start_date) {
Expand Down

0 comments on commit 7aab8ab

Please sign in to comment.