[BUGFIX] Remove attribute 'selected' if its value is false 14/57814/4
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 22 Mar 2018 13:34:13 +0000 (14:34 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 14 Aug 2018 17:18:00 +0000 (19:18 +0200)
commit3e0de62401024d917fb73e830a2faf24cb26f201
treee62cd11d666b2dd8e97a1f23984a373b719e0123
parentb62d5f57f474069047eb29d099f61308510c1874
[BUGFIX] Remove attribute 'selected' if its value is false

If the selected attribute is set to false (or zero), the
attribute itself must not be shown as even if it is empty it would be
meant to set the option to selected.

Resolves: #83229
Releases: master, 8.7
Change-Id: Ic2c87bf7b603eac288a4ce9d38a4ce75c5817f3d
Reviewed-on: https://review.typo3.org/57814
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/fluid/Classes/ViewHelpers/Form/Select/OptionViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/Select/OptionViewHelperTest.php [new file with mode: 0644]