Bug #64402
closedObjectStorageConverter fails to convert empty value
0%
Description
Class TYPO3\CMS\Extbase\Property\TypeConverter\ObjectStorageConverter
Method convertFrom fails if argument $source is an empty string:
Line 60 - Invalid argument for foreach.
(This is the case if a form with an multi-select field has been submitted for a property of type ObjectStorage)
The attached patch fixes this issue but does not contain a test for this case since unit tests for ObjectsStorageConverter are missing completly.
Files
Updated by Mathias Schreiber almost 10 years ago
- Target version set to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Mathias Brodala about 9 years ago
- Status changed from New to Needs Feedback
Are you able to reproduce this with the latest TYPO3 version? The ObjectStorageConverter
explicitely checks whether the source is an array and uses an empty list of child properties otherwise.
Updated by Dirk Wenzel about 9 years ago
Sorry, I'm on vacations and can not test this within the next two weeks!
Cheers
Dirk
Updated by Riccardo De Contardi almost 9 years ago
- Status changed from Needs Feedback to Closed
No activity within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Thank you