Skip to content
Snippets Groups Projects
Commit 84131835 authored by Daniel Goerz's avatar Daniel Goerz Committed by Susanne Moog
Browse files

[BUGFIX] Clone ObjectStorage in ObjectAccess

The ObjectStorage Object passed to iterator_to_array() ends up
with the pointer at the last item, so that any ongoing iteration
through the ObjectStorage wrapping the call of ObjectAccess is
interrupted.
This patch ensures that the ObjectStorage is cloned before converted
to an array so that the original object keeps it original iteration
state.

Resolves: #81597
Relates: #66995
Releases: master, 8.7
Change-Id: Ied025ff616e100cc5eb5dedd5b7b6a95293ddfcf
Reviewed-on: https://review.typo3.org/53525


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarClaus Due <claus@phpmind.net>
Reviewed-by: default avatarSascha Rademacher <sascha.rademacher@gmail.com>
Tested-by: default avatarSascha Rademacher <sascha.rademacher@gmail.com>
Reviewed-by: default avatarBenjamin Kluge <b.kluge@neusta.de>
Tested-by: default avatarBenjamin Kluge <b.kluge@neusta.de>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
parent 6f860bfd
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