[BUGFIX] TCA 'group' selectedListStyle with 'width' breaking layout 74/23474/2
authorErnesto Baschny <ernst@cron-it.de>
Tue, 27 Aug 2013 22:47:50 +0000 (00:47 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 29 Aug 2013 15:19:00 +0000 (17:19 +0200)
The problem came from a row of icons which was always rendered below
the select list with a hardcoded width of "250px", regardless if there
was content or not. Solution is not to render this icon row if there are
no icons, thus allowing the select list to be reduced in width.

Releases: 6.2, 6.1, 6.0
Resolves: #50707
Change-Id: I23520c1c547de1155091e38c69013a18fed9e559
Reviewed-on: https://review.typo3.org/23391
Reviewed-by: Kai Ole Hartwig
Tested-by: Kai Ole Hartwig
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
(cherry picked from commit 447814734d640b6811e71085d5939727dd5766de)
Reviewed-on: https://review.typo3.org/23474

typo3/sysext/backend/Classes/Form/FormEngine.php

index 209dc39..67016aa 100644 (file)
@@ -3835,7 +3835,11 @@ function ' . $evalData . '(value) {
                                        <td>' . ($params['thumbnails'] ? $this->wrapLabels($params['headers']['items']) : '') . '</td>
                                </tr>' : '') . '
                        <tr>
-                               <td valign="top">' . $selector . $thumbnails . ($params['noList'] ? '' : '<span class="filetypes">' . $this->wrapLabels($params['info'])) . '</span></td>
+                               <td valign="top">' . $selector . $thumbnails;
+               if (!$params['noList'] && $params['info'] !== '') {
+                       $str .= '<span class="filetypes">' . $this->wrapLabels($params['info']) . '</span>';
+               }
+               $str .= '</td>
                                        <td valign="top" class="icons">' . implode('<br />', $icons['L']) . '</td>
                                        <td valign="top" class="icons">' . implode('<br />', $icons['R']) . '</td>
                                        <td valign="top" class="thumbnails">' . $rightbox . '</td>