Extra table columns when grouping and hiding

Created on 7 September 2012, over 12 years ago
Updated 17 January 2025, 3 months ago

steps to reproduce:
1. create a table-style view exposing multiple content types
2. add fields from each content type, including at least 2 fields which only exist on one content type each
3. add "content type" field
4. group results by content type
5. assign fields from each content type to the same column
6. click "hide empty columns" in table display settings

expected behavior:
the number of result columns should match the number of header columns
"merged" fields should inherit "hide empty column" setting from the fields they're merged with

actual behavior:
if the "merged" field was not checked "hide empty column" before it was assigned to be merged with another column, it will cause an empty column to appear.
an extra result column causes the headers to appear misaligned.

for example:
create a view showing News and Events
add fields "News Date", "News Lede", "Event Start Date" and "Event End Date"
assign "News Lede" to "News Date" column
click "hide empty column" for "News Lede" in style options
assign "Event End Date" to "Event Start Date" column
click "hide empty column" for "Event End Date" in style options

result: "News" table has an errant column for "Event Start Date," presumably because it's still trying to render the empty "Event End Date" column.
Similarly, "Event" table has an errant column for "News Lede"

Let me know if it will help for me to post an exported view and/or screenshot.
I'm marking this minor because it's pretty obscure, and it can be fixed by first setting "hide empty columns" on the "merged" fields.

πŸ› Bug report
Status

Needs review

Version

3.0

Component

table style

Created by

πŸ‡ΊπŸ‡ΈUnited States AaronBauman Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024