• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/crm.php
  • Класс: BitrixImOpenLinesCrm
  • Вызов: Crm::isFieldsCrmEntityCorrect
protected function isFieldsCrmEntityCorrect(): Result
{
	$result = new Result;

	$fields = $this->getFields();

	if ($fields->getSession() === null)
	{
		$result->addError(new Error(Loc::getMessage('IMOL_CRM_ERROR_NO_SESSION'), self::ERROR_IMOL_NO_SESSION, __METHOD__));
	}
	else
	{
		$rawSourceId = $this->getSourceId();
		if (!$rawSourceId->isSuccess())
		{
			$result->addErrors($rawSourceId->getErrors());
		}
	}

	return $result;
}