• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/resultentity.php
  • Класс: Bitrix\Crm\WebForm\ResultEntity
  • Вызов: ResultEntity::addConsent
protected function addConsent()
{
	if ($this->formData['USE_LICENCE'] != 'Y')
	{
		return;
	}

	foreach ($this->agreements as $agreementId)
	{
		Consent::addByContext(
			$agreementId,
			CrmIntegrationUserConsent::PROVIDER_CODE,
			$this->activityId,
			[
				'URL' => $this->trace->getUrl()
			]
		);
	}
}