commit b0c2964a2b250603f994c6a732d980d96192f73f Author: David Valdez Date: Tue Apr 16 02:18:43 2013 -0500 1939008-41 fixed a regression related with the header property in cells diff --git a/core/includes/theme.inc b/core/includes/theme.inc index ac752e4..1e2bb58 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2315,10 +2315,10 @@ function template_preprocess_table(&$variables) { // $headers here while we can in tablesort_header() above. $cell = tablesort_cell($cell, $headers, $ts, $i); - // Move cell properties that are not data or attributes into - // attributes. + // Move cell properties that are not data, attributes or header property + // into attributes. foreach ($cell as $key => $value) { - if ($key != 'data' && $key != 'attributes') { + if ($key != 'data' && $key != 'attributes' && $key != 'header') { $cell['attributes'][$key] = $value; } } diff --git a/core/modules/system/templates/table.html.twig b/core/modules/system/templates/table.html.twig index 9ee3bf5..d13e369 100644 --- a/core/modules/system/templates/table.html.twig +++ b/core/modules/system/templates/table.html.twig @@ -85,7 +85,7 @@ {% for row in rows %} {% for i in row.cells|keys -%} - + <{{ row.cells[i].header ? 'th' : 'td' }}{{ row.cells[i].attributes }}> {{- row.cells[i].data -}} {%- endfor %}