Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.

recursive array merge #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

c-holtermann
Copy link

Nested get var values get lost if array merge is not recursive.

Nested get var values get lost if array merge is not recursive.
@c-holtermann
Copy link
Author

c-holtermann commented Mar 10, 2018

I have a form. The results get transmitted via POST. I can access date[startdate] using

###EXPRESSION.gp:date|startdate###

in extension https://extensions.typo3.org/extension/templatedisplay/
If I submit the same data using GET (something like http://mytypo3usingrealurl/?date[startdate]=XYZ) I can't access the value. When debugging I found that the values get lost during the array merge of get and post vars. Doing the merge recursively solved the problem for me.

I'm still running 6.2 but the mechanism looks the same in this recent version. It's still array_merge. But I haven't tested it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant