• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entitypreset.php
  • Класс: Bitrix\Crm\EntityPreset
  • Вызов: EntityPreset::checkNeedChangeCurrentCountry
public function checkNeedChangeCurrentCountry(): bool
{
	$countryId = (int)Option::get('crm', '~crm_requisite_current_country_can_change', 0);
	return (
		$countryId > 0
		&& in_array($countryId, EntityRequisite::getAllowedRqFieldCountries(), true)
		&& $countryId !== static::getCurrentCountryId()
		&& static::checkChangeCurrentCountryPermission()
	);
}