• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/checklist/internals/checklist.php
  • Класс: BitrixTasksCheckListInternalsCheckList
  • Вызов: CheckList::getRecountedSortIndexes
private function getRecountedSortIndexes($sortIndexes, $newSortIndex)
{
	$recountedSortIndexes = $sortIndexes;

	$nextIndex = $newSortIndex + 1;

	foreach ($recountedSortIndexes as $id => $index)
	{
		if ($index >= $newSortIndex)
		{
			$recountedSortIndexes[$id] = $nextIndex;
			$nextIndex++;
		}
	}

	return $recountedSortIndexes;
}