.. include:: /Includes.rst.txt .. _feature-1791321483: ====================================================== Feature: Choose the region of an address from ISO 3166 ====================================================== Description =========== Addresses of the company, of locations and of employees gain a region, chosen from the ISO 3166-2 regions of the address's country with names in the reader's language, such as Liverpool (``GB-LIV``) or Nordrhein-Westfalen (``DE-NW``). ``listRegions`` lists them; a region of another country is refused. The data comes from Debian's iso-codes through sokil/php-isocodes and is updated with that dependency. A choice field may now take its options from a path naming another field of the form, reloaded when that field changes. Impact ====== New column ``region_code`` on the addresses of ``company``, ``location`` and ``employee``, new operation ``listRegions`` and new dependencies sokil/php-isocodes and sokil/php-isocodes-db-i18n of adsum-core. .. index:: API, Database, Frontend, package:adsum-core