Bug #36988
PropertyMapper chokes on Objects that are already converted
| Status: | Resolved | Start date: | 2012-12-25 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Sebastian Kurfuerst | % Done: | 100% |
|
| Category: | Property | |||
| Target version: | TYPO3 Flow Base Distribution - 1.1 beta 3 | |||
| PHP Version: | Complexity: | |||
| Has patch: | No | FLOW3 version affected: | Git master | |
| Votes: | 0 |
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
| related to TYPO3.Form - Feature #36722: Support identifiers with special characters | Resolved | 2012-04-30 | ||
| related to TYPO3.Flow - Bug #39445: PropertyMapper chokes on Objects that are already convert... | Resolved | 2012-12-25 | ||
| blocks Foo.ContentManagement - Major Feature #37293: Refactor Admin to work inside Phoenix as Foo.ContentManag... | New | 2012-05-18 |
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
Updated by Marc Neuhaus about 1 year ago
- File PropertyMapper.diff added
- Assignee 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.
Updated by Bastian Waidelich about 1 year 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
Updated by Karsten Dambekalns about 1 year ago
- Target version changed from 1.1 beta 1 to 1.1
Updated by Karsten Dambekalns 12 months ago
- Target version changed from 1.1 to 1.1 RC1
Updated by Sebastian Kurfuerst 12 months ago
- Status changed from New to Accepted
- Priority changed from Should have to Must have
Updated by Gerrit Code Review 12 months 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
Updated by Gerrit Code Review 11 months ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11724
Updated by Gerrit Code Review 11 months 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
Updated by Sebastian Kurfuerst 11 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c2caff2490ee39b6b5c032fe713c315f72e00e7a.
Updated by Karsten Dambekalns 11 months ago
- Target version changed from 1.1 RC1 to 1.1 beta 3