• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/task/sorting.php
  • Класс: BitrixTasksInternalsTaskSortingTable
  • Вызов: SortingTable::deleteByTaskId
static function deleteByTaskId($taskId)
{
	$taskId = intval($taskId);
	if (!$taskId)
	{
		return;
	}

	$rows = self::getList(array(
		"filter" => array(
			"TASK_ID" => $taskId
		)
	));

	while ($row = $rows->fetch())
	{
		static::fixSiblings($row);
	}

	HttpApplication::getConnection()->query("delete from ".static::getTableName()." where TASK_ID = ".$taskId);
}