• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Field/Comments.php
  • Класс: Bitrix\Crm\Field\Comments
  • Вызов: Comments::processLogic
protected function processLogic(Item $item, Context $context = null): Result
{
	if ($item->isChanged($this->getName()))
	{
		$newComment = $item->get($this->getName());

		$item->set(
			$this->getName(),
			CommentsHelper::normalizeComment($newComment),
		);
	}

	return new Result();
}