...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/productloader.php
- Класс: Bitrix\Crm\Integration\DocumentGenerator\ProductLoader
- Вызов: ProductLoader::addDirectoryFields
protected function addDirectoryFields(array $property): void { $field = $this->makeFieldFromProperty($property); $this->addField($property, $field); $directoryImageFakeProperty = $property; $directoryImageFakeProperty['NAME'] = Loc::getMessage('CRM_DOCUMENTGENERATOR_PRODUCTLOADER_DIRECTORY_IMAGE_FIELD', [ '#NAME#' => $directoryImageFakeProperty['NAME'], ]); $directoryImageFakeProperty['ID'] .= '_IMAGE'; $this->directoryImagePropertyCodes[$this->getPropertyFieldCode($directoryImageFakeProperty['ID'])] = (int)$property['ID']; if (!empty($directoryImageFakeProperty['CODE'])) { $directoryImageFakeProperty['CODE'] .= '_IMAGE'; $this->directoryImagePropertyCodes[$this->getPropertyFieldCode($directoryImageFakeProperty['CODE'])] = (int)$property['ID']; } $directoryImageFakeProperty['PROPERTY_TYPE'] = 'F'; $field = $this->makeFieldFromProperty($directoryImageFakeProperty); $this->addField($directoryImageFakeProperty, $field); }