• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/update/eventduplicatecleaner.php
  • Класс: BitrixCalendarUpdateEventDuplicateCleaner
  • Вызов: EventDuplicateCleaner::clearLocationEntriesWithEmptyParent
private function clearLocationEntriesWithEmptyParent(): void
{
	global $DB;
	$DB->Query("
		delete ce
		from b_calendar_event as ce
		left join b_calendar_event as p
		on ce.PARENT_ID=p.ID
		where 
			ce.CAL_TYPE='location'
			and (p.ID is null or p.DELETED='Y')
	");
}