Warning: Undefined array key XXX in Drupal\views_aggregator\Plugin\views\style\Table->getCellRaw()

Created on 18 November 2022, over 1 year ago
Updated 3 June 2024, 25 days ago

Problem/Motivation

When a relationship is missing and used in a grouping function, the warning "Warning: Undefined array key XXX in Drupal\views_aggregator\Plugin\views\style\Table->getCellRaw()" is triggered.

Add a check to ensure that warning is not triggered.

πŸ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain plopesc Valladolid

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.

  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

    I encountered this issue, looks like I have an aggregated table with a sum on a column that has no values.

    This patch fixes the warnings. It's just checking isset($result_row->_relationship_entities[$relationship]) before using the value.

Production build 0.69.0 2024