Delivery::getCustomViewLink

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Delivery
  4. getCustomViewLink
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/delivery.php
  • Класс: Bitrix\Crm\Activity\Provider\Delivery
  • Вызов: Delivery::getCustomViewLink
static function getCustomViewLink(array $activityFields): ?string
{
	$bindings = \CCrmActivity::GetBindings((int)$activityFields['ID']);
	foreach ($bindings as $binding)
	{
		if ((int)$binding['OWNER_TYPE_ID'] === \CCrmOwnerType::Deal)
		{
			return \CComponentEngine::MakePathFromTemplate(
				CrmCheckPath('PATH_TO_DEAL_DETAILS', '', ''),
				['deal_id' => $binding['OWNER_ID']]
			);
		}
	}

	return parent::getCustomViewLink($activityFields);
}

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