Adds a conditional check on colspan attribute when generating the header count for the empty message.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Alan D.’s picture

Sorry, steps to reproduce. Simply have a look at a empty vocab listing in "admin/structure/taxonomy".

<table class="sticky-enabled" id="taxonomy">
 <tbody><tr><th>Vocabulary name</th><th colspan="3">Operations</th></tr>
</tbody><tbody>
 <tr class="odd"><td class="empty message" colspan="2">No vocabularies available. <a href="/admin/structure/taxonomy/add">Add vocabulary</a>.</td> </tr>
</tbody>
</table>

Status: Needs review » Needs work

The last submitted patch, theme.inc_.patch, failed testing.

Alan D.’s picture

Status: Needs work » Needs review
FileSize
911 bytes

Lets see if ConText can save the correct line endings...

Status: Needs review » Needs work

The last submitted patch, theme-2.inc_.patch, failed testing.

Alan D.’s picture

Status: Needs work » Needs review
FileSize
885 bytes

OK, ConText convert filter run a couple times...

Status: Needs review » Needs work

The last submitted patch, theme.inc-3.patch, failed testing.

Alan D.’s picture

Status: Needs work » Needs review
FileSize
913 bytes

Duh. Wrong context.

effulgentsia’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

Related but different: #720202: theme_table doesn't use thead with empty cells. Please add a test.

duellj’s picture

Status: Needs work » Needs review
FileSize
2.4 KB

Fixed spelling error in last patch, and also updated testThemeTableWithEmptyMessage to include a check for correct colspan in empty message when header has a colspan.

alienresident’s picture

Status: Needs review » Reviewed & tested by the community

Review this patch and it passed the simple test code looks good to me.
Very latest patch is mostly typos.

jrbeeman’s picture

Patch reviewed and simpletest ran successfully. Looks great.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -Needs tests

Automatically closed -- issue fixed for 2 weeks with no activity.