• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/timeline/item.php
  • Класс: Bitrix\Crm\Controller\Timeline\Item
  • Вызов: Item::pinAction
public function pinAction(int $id, int $ownerTypeId, int $ownerId): void
{
	if (!$this->checkBinding($id, $ownerTypeId, $ownerId))
	{
		return;
	}
	if (!$this->checkPinnedLimit($id, $ownerTypeId, $ownerId))
	{
		$this->addError(new Error(Loc::getMessage('CRM_TIMELINE_FASTEN_LIMIT_MESSAGE')));

		return;
	}
	$this->setPinned($id, $ownerTypeId, $ownerId, true);
}