Skip to content

Commit

Permalink
If there are no recurring entities returned by pre_delete function do…
Browse files Browse the repository at this point in the history
…n't delete anything!
  • Loading branch information
mattwire committed Aug 16, 2018
1 parent e82f3bb commit eac280f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Form/RecurringEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ public static function postProcess($params = array(), $type, $linkedEntities = a
}
}
}
else {
else if (empty(CRM_Utils_Array::value('pre_delete_func', CRM_Core_BAO_RecurringEntity::$_recurringEntityHelper[$params['entity_table']]))) {
$getRelatedEntities = CRM_Core_BAO_RecurringEntity::getEntitiesFor($params['entity_id'], $params['entity_table'], FALSE);
foreach ($getRelatedEntities as $key => $value) {
$result = civicrm_api3(
Expand Down

0 comments on commit eac280f

Please sign in to comment.