VBO + Aggregation does not work

Created on 24 November 2019, about 5 years ago
Updated 2 August 2024, 5 months ago

Problem/Motivation

I have a view which is GROUP BY on a field not in the base table. As a result, calculateEntityBulkFormKey gets completely bogus $base_field_value.

Proposed resolution

I fail to see why do we need it. As far as I can see we are trying to get an entity for the row and merely eyeballing

    $key_parts = [
      $base_field_value,
      $entity->language()->getId(),
      $entity->getEntityTypeId(),
      $entity->id(),
    ];

suggests we have an entity at hand and then why not use it?

I found an issue which again, just guesswork, seems related.

Remaining tasks

Frankly, I have no idea.

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs review

Version

3.0

Component

Core

Created by

🇨🇦Canada Charlie ChX Negyesi 🍁Canada

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