Undefined array key "class" in gin_preprocess_table()

Created on 23 May 2024, about 1 month ago
Updated 6 June 2024, 21 days ago

Problem/Motivation

When visiting a page with a table such as the translations page i.e.
/en/node/[nid]/translations
The following warning is displayed:

Warning: Undefined array key "class" in gin_preprocess_table() (line 29 of themes/contrib/gin/includes/table.theme).
gin_preprocess_table(Array, 'table', Array)

Steps to reproduce

  1. Navigate to table listing page: /en/node/[nid]/translations
  2. Warning is displayed

Proposed resolution

The issue seems to be because the gin_preprocess_table() function expects class key to exist but in this case it seems like it does not.
The solution is we should check before continuing.

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom 3li U.K. πŸ‡¬πŸ‡§

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

Comments & Activities

Production build 0.69.0 2024