• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/manager/task/checklist.php
  • Класс: BitrixTasksManagerTaskCheckList
  • Вызов: CheckList::adaptSet
static function adaptSet(&$data)
{
	if (array_key_exists(static::getCode(true), $data))
	{
		$checkList = $data[static::getCode(true)];

		if (is_array($checkList))
		{
			$toSave = [];

			foreach ($checkList as $key => $value)
			{
				if ((string)$value['TITLE'] != '')
				{
					$toSave[] = $value;
				}
			}

			$data['CHECKLIST'] = $toSave;
		}
	}
}