• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_lead.php
  • Класс: \CAllCrmLead
  • Вызов: CAllCrmLead::ProcessStatusDeletion
static function ProcessStatusDeletion(array $fields)
{
	$entityID = isset($fields['ENTITY_ID']) ? $fields['ENTITY_ID'] : '';
	$statusID = isset($fields['STATUS_ID']) ? $fields['STATUS_ID'] : '';

	if($entityID === 'STATUS' && $statusID !== '')
	{
		Crm\Attribute\FieldAttributeManager::processPhaseDeletion($statusID, \CCrmOwnerType::Lead, '');
	}
}