[TASK] Style select field of BackendUtility::getFuncMenu 84/51384/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 22 Jan 2017 19:21:50 +0000 (20:21 +0100)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Mon, 23 Jan 2017 18:51:30 +0000 (19:51 +0100)
The select field of BackendUtility::getFuncMenu must be styled by
the class "form-control".

One example can be found in the template module if multiple
template records are saved on one page.

Resolves: #79417
Releases: master
Change-Id: I84967474aadbd88bd844fe3cb7de0245abebd39f
Reviewed-on: https://review.typo3.org/51384
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Classes/Utility/BackendUtility.php

index e6b468f..d5aee74 100644 (file)
@@ -3275,7 +3275,7 @@ class BackendUtility
             return '
 
                                <!-- Function Menu of module -->
-                               <select name="' . $elementName . '" onchange="' . htmlspecialchars($onChange) . '">
+                               <select class="form-control" name="' . $elementName . '" onchange="' . htmlspecialchars($onChange) . '">
                                        ' . implode('
                                        ', $options) . '
                                </select>