Bug #36988
PropertyMapper chokes on Objects that are already converted
Status: | Resolved | Start date: | 2012-12-25 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Sebastian Kurfuerst | % Done: | 100% |
|
Category: | Property | |||
Target version: | TYPO3 Flow Base Distribution - 1.1 beta 3 | |||
PHP Version: | Complexity: | |||
Has patch: | No | Affected Flow version: | Git master |
Description
I've noticed that the PropertyMapper chokes on Objects which are already in the Target form.
This happened to me with the TYPO3.Form Project in case where the DatePickerViewHelper already transforms the Value to a DateTime and the FormHandler later tries to map it again which fails because he isn't supposed to handle objects.
In this case i would suggest, to check if the source property is of the target property and skip it in that case.
Here's the origination ticket:
http://forge.typo3.org/issues/36722#note-8
Subtasks
Related issues
Associated revisions
[BUGFIX] Property Mapper chokes on already-converted objects
This happens for example when using the TYPO3.Form Project with a DatePicker,
which already transforms the value to the correct data type.
Change-Id: I884d4a82d41f4c5687536e46b56def8d1d86f9e8
Fixes: #36988
Releases: 1.1, 1.2
[BUGFIX] Property Mapper chokes on already-converted objects
This happens for example when using the TYPO3.Form Project with a DatePicker,
which already transforms the value to the correct data type.
Change-Id: I884d4a82d41f4c5687536e46b56def8d1d86f9e8
Fixes: #36988
Releases: 1.1, 1.2
History
#1 Updated by Marc Neuhaus about 3 years ago
- File PropertyMapper.diff
added
- Assigned To set to Sebastian Kurfuerst
Here's a little Patch to check if the source is an object and return it if it's an instance of the target type.
#2 Updated by Bastian Waidelich about 3 years ago
- Subject changed from PropertyMapper chokes on Objects which are already in the target form to PropertyMapper chokes on Objects that are already converted
- Category set to Property
- Target version set to 1.1 beta 1
#3 Updated by Karsten Dambekalns about 3 years ago
- Target version changed from 1.1 beta 1 to 1.1
#4 Updated by Karsten Dambekalns about 3 years ago
- Target version changed from 1.1 to 1.1 RC1
#5 Updated by Sebastian Kurfuerst about 3 years ago
- Status changed from New to Accepted
- Priority changed from Should have to Must have
#6 Updated by Gerrit Code Review about 3 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11724
#7 Updated by Gerrit Code Review about 3 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11724
#8 Updated by Gerrit Code Review about 3 years ago
Patch set 1 for branch FLOW3-1.1 has been pushed to the review server.
It is available at http://review.typo3.org/12168
#9 Updated by Sebastian Kurfuerst about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c2caff2490ee39b6b5c032fe713c315f72e00e7a.
#10 Updated by Karsten Dambekalns about 3 years ago
- Target version changed from 1.1 RC1 to 1.1 beta 3