Template::prepareFieldsToCopy

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Template
  4. prepareFieldsToCopy
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/copy/implement/template.php
  • Класс: BitrixTasksCopyImplementTemplate
  • Вызов: Template::prepareFieldsToCopy
public function prepareFieldsToCopy(Container $container, array $fields)
{
	$fields = $this->cleanDataToCopy($fields);

	$dictionary = $container->getDictionary();

	if (!empty($container->getParentId()))
	{
		$fields['BASE_TEMPLATE_ID'] = $container->getParentId();
	}

	if ($taskId = $dictionary->get('TASK_ID'))
	{
		$fields['TASK_ID'] = $taskId;
	}

	if ($taskId = $dictionary->get('GROUP_ID'))
	{
		$fields['GROUP_ID'] = $taskId;
	}

	return $fields;
}

Добавить комментарий