Skip to content

Conversation

@alexander-nitsche-governikus
Copy link
Contributor

@alexander-nitsche-governikus alexander-nitsche-governikus commented Jul 25, 2025

The extension setting "overrideFeUserCountryFieldWithSelect" promises to activate country selection lists without requiring EXT:static_info_tables. A few minor fixes had to be applied to make it work in TYPO3 v12:

  • Enable dependency injection in StaticInfoTables.php, even if EXT:static_info_tables is not installed.
  • Provide selection items as [] = [<label>, <iso-code>] instead of [<iso-code>] = <label> as expected by the TCA procedures.
  • Sort UTF-8 labels by using the collator of the PHP intl extension. Inspired by the TYPO3 core.
  • Fetch the fully initialized language service from $GLOBALS['LANG']. Inspired by the TYPO3 core.

Fixes: #652

The extension setting "overrideFeUserCountryFieldWithSelect" promises
to activate country selection lists without requiring
EXT:static_info_tables. A few minor fixes had to be applied to make
it work in TYPO3 v12:

- Enable dependency injection in StaticInfoTables.php, even if
  EXT:static_info_tables is not installed.
- Provide selection items as
  ```
  [] = [<label>, <iso-code>]
  ```
  instead of
  ```
  [<iso-code>] = <label>
  ```
  as expected by the TCA procedures.
- Sort UTF-8 labels by using the collator of the PHP intl extension.
  Inspired by the TYPO3 core.
- Fetch the fully initialized language service from $GLOBALS['LANG'].
  Inspired by the TYPO3 core.
@alexander-nitsche-governikus
Copy link
Contributor Author

alexander-nitsche-governikus commented Jul 25, 2025

Dear in2code team,

this PR should fix the issue 652. I have only run manual tests in the TYPO3 v12 backend for german and english language. Did not implement automatic tests.

Greetings
Alex

@sbusemann
Copy link
Contributor

planned for dev team: https://projekte.in2code.de/issues/73665

@sbusemann sbusemann added this to the 8.3.2 milestone Aug 3, 2025
@sebastianstein sebastianstein merged commit 3b8a6a4 into in2code-de:v8 Sep 5, 2025
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Country select box does not work without EXT:static_info_tables

3 participants