hotfix issue #1203 add all_langs option
see preparePalettes
https://github.com/MetaModels/core/commit/6ae958e40985b18b8c14968586ff5e7a7ed87d43
at this time work for filter type simple lookup...
for transladed text and filter text we should add at tl_metamodel_filtersetting (translated text)
$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['text_palettes']['translatedtext'] =
&$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['text_palettes']['_translated_'];
but the filter text is loaded before translatedtext :(
Can you fix this or shoul i try it?
phpmd:
[phpmd] /composer/vendor/metamodels/core/src/MetaModels/DcGeneral/Events/Table/FilterSetting/Subscriber.php:426 The method prepareSubPalettes() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
[phpmd] /composer/vendor/metamodels/core/src/MetaModels/DcGeneral/Events/Table/FilterSetting/Subscriber.php:426 prepareSubPalettes accesses the super-global variable $GLOBALS.
[phpmd] /composer/vendor/metamodels/core/src/MetaModels/DcGeneral/Events/Table/FilterSetting/Subscriber.php:426 prepareSubPalettes accesses the super-global variable $GLOBALS.
[phpmd] /composer/vendor/metamodels/core/src/MetaModels/DcGeneral/Events/Table/InputScreens/Subscriber.php:58 The class Subscriber has an overall complexity of 82 which is very high. The configured complexity threshold is 80.
phpcs:
[phpcs]
[phpcs] FILE: ...rc/MetaModels/DcGeneral/Events/Table/InputScreens/Subscriber.php
[phpcs] ----------------------------------------------------------------------
[phpcs] FOUND 1 ERROR AFFECTING 1 LINE
[phpcs] ----------------------------------------------------------------------
[phpcs] 732 | ERROR | Parameter comment must end with a full stop
[phpcs] ----------------------------------------------------------------------
[phpcs]
[phpcs] Time: 2.43 secs; Memory: 38Mb
[phpcs]