• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/volatile/fieldinfo.php
  • Класс: Bitrix\Crm\Integrity\Volatile\FieldInfo
  • Вызов: FieldInfo::prepareCountries
protected function prepareCountries(array $countries): array
{
	$currentCountryId = EntityPreset::getCurrentCountryId();
	if ($currentCountryId > 0 && !in_array($currentCountryId, $countries, true))
	{
		array_splice($countries, 0, null, $currentCountryId);
	}

	return $countries;
}