• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/task.php
  • Класс: BitrixTasksControlTask
  • Вызов: Task::sendUpdateNotifications
private function sendUpdateNotifications(array $fields)
{
	if ($this->skipNotifications)
	{
		return;
	}

	if (!$this->sourceTaskData)
	{
		return;
	}

	$notificationFields = array_merge($fields, ['CHANGED_BY' => $this->getOccurUserId()]);
	$statusChanged = $this->fullTaskData['STATUS_CHANGED'] ?? false;

	if ($statusChanged)
	{
		$status = (int)$this->fullTaskData['REAL_STATUS'] ?? null;
		CTaskNotifications::SendStatusMessage(
			$this->sourceTaskData,
			$status,
			$notificationFields
		);
	}

	CTaskNotifications::SendUpdateMessage(
		$notificationFields,
		$this->sourceTaskData,
		false,
		$this->byPassParams
	);
}