DuplicateIndexType::getPreferredScope

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. DuplicateIndexType
  4. getPreferredScope
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicateindextype.php
  • Класс: Bitrix\Crm\Integrity\DuplicateIndexType
  • Вызов: DuplicateIndexType::getPreferredScope
static function getPreferredScope()
{
	$result = DuplicateIndexType::DEFAULT_SCOPE;

	$countryId = EntityPreset::getCurrentCountryId();
	if ($countryId > 0)
		$result = EntityRequisite::formatDuplicateCriterionScope($countryId);

	return $result;
}

Добавить комментарий