[BUGFIX] Remove attribute 'selected' if its value is false 31/56431/11
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 22 Mar 2018 13:34:13 +0000 (14:34 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 5 Aug 2018 09:49:42 +0000 (11:49 +0200)
commit4c0b457eb1c29e0998612603e141db07de7efadb
tree0ade26cbee1dd54c0d8f68750a3e03cd36052d4a
parenta4fa183349bff6d62d612b14b7bfa878b8761809
[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/56431
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Timo Poppinga <timo.poppinga@zdrei.com>
Tested-by: Timo Poppinga <timo.poppinga@zdrei.com>
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]