...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_deal.php
- Класс: \CAllCrmDeal
- Вызов: CAllCrmDeal::ProcessStatusDeletion
static function ProcessStatusDeletion(array $fields) { $entityID = isset($fields['ENTITY_ID']) ? $fields['ENTITY_ID'] : ''; $statusID = isset($fields['STATUS_ID']) ? $fields['STATUS_ID'] : ''; if(($entityID === 'DEAL_STAGE' || preg_match("/DEAL_STAGE_\d+/", $entityID) == 1) && $statusID !== '') { $categoryID = Crm\Category\DealCategory::convertFromStatusEntityID($entityID); Crm\Attribute\FieldAttributeManager::processPhaseDeletion( $statusID, \CCrmOwnerType::Deal, Crm\Attribute\FieldAttributeManager::resolveEntityScope( \CCrmOwnerType::Deal, 0, array('CATEGORY_ID' => $categoryID) ) ); } }