« Previous | Next » 

Revision e23dc49c

Parent ffa30680

Added by Andreas Wolf almost 9 years ago

[BUGFIX] Mapping to subtype with [__type] fails

The type of a target object can be manipulated by setting __type in the
form (or during action initialization when saving the form). This
however fails if the target subclass contains fields that the original
class does not have, because the property mapping is done before the
final class is extracted from the __type request variable.

To get this working, the process of getting the final class name is
moved before the property mapping.

If you wrote your own type converters, you might need to implement the
new getTargetTypeForSource() method if you do not extend the provided
AbstractTypeConverter of Flow.

Change-Id: Ia42e374202845dfe5e95c72512e9fefb4f00e789
Fixes: #32829
Releases: master, 2.0, 1.1

  • added
  • modified
  • copied
  • renamed
  • deleted