• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/timeline/ordercheckcontroller.php
  • Класс: Bitrix\Crm\Timeline\OrderCheckController
  • Вызов: OrderCheckController::resolveCreatorID
static function resolveCreatorID(array $fields): int
{
	$authorId = 0;
	if (isset($fields['CREATED_BY']))
	{
		$authorId = (int)$fields['CREATED_BY'];
	}

	if ($authorId <= 0 && isset($fields['RESPONSIBLE_ID']))
	{
		$authorId = (int)$fields['RESPONSIBLE_ID'];
	}

	if ($authorId <= 0)
	{
		$authorId = (int)self::getDefaultAuthorId();
	}

	return $authorId;
}