[FEATURE] Introduce prepend option for Select ViewHelper
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 27 Dec 2012 12:37:28 +0000 (13:37 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 5 Feb 2013 23:05:00 +0000 (00:05 +0100)
commit942d92a84a39de530ed418e88a6667adfabd99c2
tree6faa09cf08effc947fc28bb7f6f5c4544eccd758
parente203d46fa8c9cc50992907ccf5e9f8c5dc27db75
[FEATURE] Introduce prepend option for Select ViewHelper

A common use case with select fields is to have a 'empty' option at
first position in the options list.

The patch provides the possibility to add a label and additionally
a value, which will be rendered in the option list.

Change-Id: I4fac7372661473d7abbcc209a0fdbd933e65e315
Resolves: #26595
Releases: 6.1
Reviewed-on: https://review.typo3.org/17276
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Thomas Loeffler
Tested-by: Thomas Loeffler
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/SelectViewHelperTest.php