• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/dispatcher/publicaction/task/checklist.php
  • Класс: Bitrix\Tasks\Dispatcher\PublicAction\Task\CheckList
  • Вызов: CheckList::moveAfter
public function moveAfter($id, $afterId)
{
	$this->addForbiddenError();
	return [];

	// you can move check list items ONLY when you have write access to the task
	$result = array();

	if($id = $this->checkId($id))
	{
		$afterId = intval($afterId);

		if($id != $afterId)
		{
			// get task id
			$taskId = $this->getOwnerTaskId($id);
			if($taskId)
			{
				$task = \CTaskItem::getInstance($taskId, Util\User::getId());

				$item = new \CTaskCheckListItem($task, $id);
				$item->moveAfterItem($afterId);
			}
		}
	}

	return $result;
}