}
}
}
+
+ static public function delEntityRelations($entityId, $entityTable){
+ if(!$entityId && !$entityTable){
+ return FALSE;
+ }
+ $parentID = self::getParentFor($entityId, $entityTable);
+ if($parentID){
+ $dao = new CRM_Core_DAO_RecurringEntity();
+ $dao->parent_id = $parentID;
+ return $dao->delete();
+ }
+ }
}
<page_callback>CRM_Core_Page_Angular</page_callback>
<access_arguments>access CiviCRM</access_arguments>
</item>
+ <item>
+ <path>civicrm/ajax/recurringEntity/update_cascade_type</path>
+ <page_callback>CRM_Core_Page_AJAX_RecurringEntity::updateCascadeType</page_callback>
+ <access_arguments>access CiviCRM,access CiviEvent</access_arguments>
+ </item>
+ <item>
+ <path>civicrm/ajax/recurringEntity/generate_preview</path>
+ <page_callback>CRM_Core_Page_AJAX_RecurringEntity::generatePreview</page_callback>
+ <access_arguments>access CiviCRM,access CiviEvent</access_arguments>
+ </item>
</menu>
<page_callback>CRM_Event_Form_ParticipantFeeSelection</page_callback>
<access_arguments>access CiviEvent</access_arguments>
</item>
- <item>
- <path>civicrm/ajax/recurringEntity/update_cascade_type</path>
- <page_callback>CRM_Core_Page_AJAX_RecurringEntity::updateCascadeType</page_callback>
- <access_arguments>access CiviCRM,access CiviEvent</access_arguments>
- </item>
- <item>
- <path>civicrm/ajax/recurringEntity/generate_preview</path>
- <page_callback>CRM_Core_Page_AJAX_RecurringEntity::generatePreview</page_callback>
- <access_arguments>access CiviCRM,access CiviEvent</access_arguments>
- </item>
</menu>