Project

General

Profile

Bug #45550 ยป Fix_for__45550.diff

Jo Hasenau, 2013-02-17 17:20

View differences:

typo3/sysext/cms/layout/class.tx_cms_layout.php
$rowSpan = intval($columnConfig['rowspan']);
$grid .= '<td valign="top"' .
($colSpan > 0 ? ' colspan="' . $colSpan . '"' : '') .
($rowSpan > 0 ? ' rowspan="' . $rowSpan . '"' : '') .
' class="t3-gridCell t3-page-column t3-page-column-' . $columnKey .
(!isset($columnConfig['colPos']) ? ' t3-gridCell-unassigned' : '') .
((isset($columnConfig['colPos']) && ! $head[$columnKey]) ? ' t3-gridCell-restricted' : '') .
($colSpan > 0 ? ' t3-gridCell-width' . $colSpan : '') .
($rowSpan > 0 ? ' t3-gridCell-height' . $rowSpan : '') . '">';
($colSpan > 0 ? ' colspan="' . $colSpan . '"' : '') .
($rowSpan > 0 ? ' rowspan="' . $rowSpan . '"' : '') .
' class="t3-gridCell t3-page-column t3-page-column-' . $columnKey .
((!isset($columnConfig['colPos']) || $columnConfig['colPos'] === '') ? ' t3-gridCell-unassigned' : '') .
((isset($columnConfig['colPos']) && $columnConfig['colPos'] !== '' && !$head[$columnKey]) ? ' t3-gridCell-restricted' : '') .
($colSpan > 0 ? ' t3-gridCell-width' . $colSpan : '') .
($rowSpan > 0 ? ' t3-gridCell-height' . $rowSpan : '') . '">';
// Draw the pre-generated header with edit and new buttons if a colPos is assigned.
// If not, a new header without any buttons will be generated.
if (isset($columnConfig['colPos']) && $head[$columnKey]) {
if (isset($columnConfig['colPos']) && $columnConfig['colPos'] !== '' && $head[$columnKey]) {
$grid .= $head[$columnKey] . $content[$columnKey];
} else if ($columnConfig['colPos']) {
} elseif ($columnConfig['colPos'] !== '') {
$grid .= $this->tt_content_drawColHeader($GLOBALS['LANG']->getLL('noAccess'), '', '');
} else {
$grid .= $this->tt_content_drawColHeader($GLOBALS['LANG']->getLL('notAssigned'), '', '');
    (1-1/1)