• Модуль: workflow
  • Путь к файлу: ~/bitrix/modules/workflow/classes/general/status.php
  • Класс: CWorkflowStatus
  • Вызов: CWorkflowStatus::CheckFields
function CheckFields($ID, $arFields)
{
	$aMsg = array();

	$ID = intval($ID);

	if(($ID <= 0) && (trim($arFields["TITLE"]) == ''))
		$aMsg[] = array("id"=>"TITLE", "text"=> GetMessage("FLOW_FORGOT_TITLE"));

	if(!empty($aMsg))
	{
		$e = new CAdminException($aMsg);
		$GLOBALS["APPLICATION"]->ThrowException($e);
		return false;
	}
	return true;
}