Метод deleteAdFieldMappingsOfRemovedFields

private static

Сигнатура метода

private static function deleteAdFieldMappingsOfRemovedFields(int $formId, array $removedCodes): void

Возвращает: void

Описание

Removing a field removes the ad field mappings pointing at it, the way it removes the dependency rules. A mapping names the field of the form an ad field is written into, and the domain validation refuses a mapping naming a field the form does not end up with. A request carrying the fields alone would otherwise leave exactly that state stored: a mapping pointing at nothing, which no later request could have created. The rows of the mappings belong to CRM and carry no subscription of their own - the link does - so they are removed here directly, while the links themselves stay with the mechanism owning them.

Параметры

2
Имя Тип По умолчанию Флаги
$formId int —
—
$removedCodes array —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Repository/WebForm/Section/FieldSectionWriter.php
Расположение метода в файле
Строки 212–231

Исходный код

PHP