Actions
Bug #93722
openform variants error when using . inside a key
Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2021-03-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
variants
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint
Description
I created a form variant and noticed that when you use a . inside a key and save the form in the backend again the form variant options get "corrupted"
example:
1. Creating a new variant option in the yaml file.
variants:
-
identifier: multicheckbox-1
condition: 'formValues["singleselect-1"] && formValues["radiobutton-1"] == "TEST"'
properties:
options:
'test (test2) test3. test4': TEST
2. make (any) changes in the form editor in the BE and save the form again.
3. the variant changes to
options:
'test (test2) test3':
' test4': TEST
I only noticed that because I copied and pasted the values. The original key was longer and was also split before the closing bracket but I couldn't reproduce this in this example.
Actions