femanager icon indicating copy to clipboard operation
femanager copied to clipboard

Nearly all field partials contains deprecated settings in used validation viewhelper

Open mediaessenz opened this issue 4 years ago • 1 comments

Additional every used field generates a deprication log entry.

To fix: Remove all settings:settings from the field partials

Change the validation viewhelper: $this->registerArgument('settings', 'array ', 'all TypoScript settings for this form', true); to: $this->registerArgument('settings', 'array ', 'all TypoScript settings for this form [deprecated]', false);

Change the since TYPO3 9 marked as deprecated GeneralUtility::deprecationLog with this:

if ($settings !== []) {
    trigger_error('Settings should not be filled any more in field partials. Pls update your femanager partial files.', E_USER_DEPRECATED);
}

See: https://github.com/in2code-de/femanager/issues/220

mediaessenz avatar Apr 01 '20 16:04 mediaessenz