« Previous | Next » 

Revision 21095469

ID21095469fc78583991f9c7d8358f57b9a0350910
Parent dddf78b7
Child fca7426d, 6f8086e6

Added by Bastian Waidelich almost 7 years ago

[BUGFIX] Preselect active options in property bound Select ViewHelper

Resolution of FLOW-213 introduced a regression that in some cases
prevents the ``SelectViewHelper`` from pre-selecting property-bound
values.

Background:
The change I80e7e664e7a1fa41dc36bdf89e331086c6815f78 deprecated the
method ``AbstractFormFieldViewHelper::getValue()`` in favor of a newly
introduced method ``getValueAttribute()``. That method always converts
object values using the PersistenceManager. In case the object is not
known to the PersistenceManager it thus returns ``NULL`` leading to the
above issue when using the SelectViewHelper in "objectAccessorMode" with
the ``multiple`` argument.

Change-Id: Ia491b66df17f5d27f98f5433e1a83e14a056e0e4
Related: FLOW-213
Releases: master, 3.0

  • added
  • modified
  • copied
  • renamed
  • deleted