• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/copy/integration/groupstepper.php
  • Класс: BitrixLandingCopyIntegrationGroupStepper
  • Вызов: GroupStepper::updateCopiedSite
private function updateCopiedSite(int $siteId, int $copiedSiteId, array $pageMapIds): void
{
	$siteData = $this->getSiteData($siteId);
	$siteDataForUpdate = $this->getSiteDataForUpdateCopiedSite($siteData, $pageMapIds);
	if ($siteData['TPL_ID'])
	{
		$siteDataForUpdate['TPL_ID'] = $siteData['TPL_ID'];
		$this->copyTemplate($siteId, $copiedSiteId, $pageMapIds);
	}
	if ($siteDataForUpdate)
	{
		LandingSite::update($copiedSiteId, $siteDataForUpdate);
	}
}