• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/checklist/internals/checklist.php
  • Класс: BitrixTasksCheckListInternalsCheckList
  • Вызов: CheckList::cloneFileAttachments
private function cloneFileAttachments()
{
	if (
		$this->fields->getId()
		|| !$this->fields->getCopiedId()
		|| empty($this->fields->getAttachments())
	)
	{
		return;
	}

	$attachments = $this->fields->getAttachments();
	$clone = BitrixTasksIntegrationDisk::cloneFileAttachment(array_keys($attachments), $this->userId);
	$this->fields->setAttachments($clone);
}