CAllCrmActivity::OnCalendarEventDelete

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmActivity
  4. OnCalendarEventDelete
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
  • Класс: \CAllCrmActivity
  • Вызов: CAllCrmActivity::OnCalendarEventDelete
static function OnCalendarEventDelete($eventID, $arEventFields)
{
	if(self::$IGNORE_CALENDAR_EVENTS)
	{
		return;
	}

	$dbEntities = self::GetList(
		[],
		['=CALENDAR_EVENT_ID' => $eventID]
	);
	while($arEntity = $dbEntities->Fetch())
	{
		if ($arEntity['PROVIDER_ID'] === "CRM_CALENDAR_SHARING")
		{
			continue;
		}

		self::Delete($arEntity['ID'], false, true, array('SKIP_CALENDAR_EVENT' => true));
	}
}

Добавить комментарий