• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/manager/task/checklist.php
  • Класс: BitrixTasksManagerTaskCheckList
  • Вызов: CheckList::parseSet
static function parseSet(&$data)
{
	if(array_key_exists('SE_CHECKLIST', $data) && is_array($data['SE_CHECKLIST']))
	{
		$newCl = array();
		$i = 0;
		foreach($data['SE_CHECKLIST'] as $listItem)
		{
			$id = array_key_exists('ID', $listItem) ? intval($listItem['ID']) : 0;

			if(!$id && !array_key_exists('ACTION', $listItem))
			{
				$listItem['ACTION'] = static::getFullRights();
			}

			$newCl[($id ? $id : 'n'.$i)] = $listItem;
			$i++;
		}

		$data['SE_CHECKLIST'] = $newCl;
	}
}