• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/forum/task/comment.php
  • Класс: BitrixTasksIntegrationForumTaskComment
  • Вызов: Comment::sendUpdateNotificationToOldMembers
static function sendUpdateNotificationToOldMembers(array $oldTaskData, array $newMentionedUserIds)
{
	global $DB;

	if ($newTask = CTasks::getByID($oldTaskData['ID'], false, ['returnAsArray' => true]))
	{
		$currentUserId = User::getId();

		CTaskNotifications::sendUpdateMessage(
			[
				'AUDITORS' => $newTask['AUDITORS'],
				'CHANGED_BY' => $currentUserId,
				'CHANGED_DATE' => $DB->currentTimeFunction(),
				'OUTLOOK_VERSION' => $newTask['OUTLOOK_VERSION'],
				'DEADLINE_COUNTED' => $newTask['DEADLINE_COUNTED'],
				'IGNORE_RECIPIENTS' => $newMentionedUserIds,
			],
			$oldTaskData,
			false,
			[
				'THROTTLE_MESSAGES' => false,
				'USER_ID' => $currentUserId,
				'CHECK_RIGHTS_ON_FILES' => true,
				'CORRECT_DATE_PLAN' => true,
				'CORRECT_DATE_PLAN_DEPENDENT_TASKS' => true,
			]
		);
		static::resetSonetLogRights($newTask);
	}
}