From 8911c4ef4527f3eeeb7916d80b55f884d315c10f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 30 Aug 2010 17:07:49 +0000 Subject: #891476 by solotandem: Fixed Tableselect is missing a column header when not multiple value. --- includes/form.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'includes') diff --git a/includes/form.inc b/includes/form.inc index c8d0ab7b5..e5d1b1b81 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -2788,9 +2788,14 @@ function theme_tableselect($variables) { // Add an empty header or a "Select all" checkbox to provide room for the // checkboxes/radios in the first table column. if ($element['#js_select']) { + // Add a "Select all" checkbox when checkboxes are displayed. drupal_add_js('misc/tableselect.js'); array_unshift($header, array('class' => array('select-all'))); } + else { + // Add an empty header when radio buttons are displayed. + array_unshift($header, ''); + } } return theme('table', array('header' => $header, 'rows' => $rows, 'empty' => $element['#empty'], 'attributes' => $element['#attributes'])); } -- cgit v1.2.3