Rowspan and colspan not working when cell content is a Markup object

Created on 5 October 2021, about 3 years ago
Updated 21 March 2024, 8 months ago

Problem/Motivation

Rowspan and colspan functionality is not working when cell content is an object of type Drupal\Core\Render\Markup.

Steps to reproduce

Create a table with several rows and columns, add #rowspan# tokens on several rows of one column.
Save content.

#rowspan# tokens are still visible and there is no fusion of rows.

Proposed resolution

Test if cell content is not an object of type MarkupInterface before breaking.

tablefield_cellspan.module:l.26
if (is_array($cell['content']) || is_object($cell['content']) && !$cell['content'] instanceof MarkupInterface) {
    break;
}
๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Submodule TableField Cellspan

Created by

๐Ÿ‡จ๐Ÿ‡ญSwitzerland make77

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

Merge Requests

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