Project

General

Profile

Actions

Bug #92363

closed

Epic #92636: felogin bug collection

Flexform always overwrites TS-Settings in Extbase-Version

Added by Harald Glaser over 3 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2020-09-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

With the old pibase-version the flexform-values where only used when not empty (see FrontendLoginController->mergeflexFormValuesIntoConf), otherwise the values definied by typoscript where taken into account.

The new version always uses the values from flexform, as the fieldnames start with "settings." and - as far as I understand - Extbase automatically merges such fields with the typoscript plugin-settings, overriding the typoscript settings.

This is especially relevant for the fields on the redirect sheet of the flexform (the label for redirectMode still states that "TS or flexform" would be used even in the extbase version).

Example:
This works with the piBase-Version (used it already in 6.2, but works also in current 10.4.8) when leaving the related flexform field empty:

plugin.tx_felogin_pi1.redirectPageLogin = xxx

Whereas with the extbase version, this

plugin.tx_felogin_login.settings.redirectPageLogin = xxx

ends up with redirectPageLogin = '' (empty string) in the settings-array.

Do I miss a new way to set these values with typoscript?

If not, I guess there are two possible ways to allow the same behavior as with the pibase version:
a) renaming the fields in flexform, so that extbase doesn't merge them automatically, and use the logic in mergeflexFormValuesIntoConf of the pibase version
b) allowing something like "settings.override.xxx" and merging these values over flexform values before usage


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #99976: Ignore empty flexform values in extbase extension settingsClosedTorben Hansen2023-02-17

Actions
Has duplicate TYPO3 Core - Bug #96921: Globally set storagePid get's overwrittenClosed2022-02-16

Actions
Actions

Also available in: Atom PDF