Skip to content
Snippets Groups Projects
Commit 65117663 authored by Markus Klein's avatar Markus Klein Committed by Stefan Bürk
Browse files

[BUGFIX] JsonView creates array for ObjectStorage

The ObjectStorage internals return strings as keys for the elements,
when iterating over the storage.

Users expect JSON arrays (not objects) when rendering an ObjectStorage
through a JsonView.

The `toArray` method takes care of this key conversion.

Resolves: #66581
Releases: main
Change-Id: Ice2487f6e85e3949d9ee59174b6175c46b1ae8e1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77361


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent ebb5d3c3
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment