ParametersCollectionStorage is returned as ParametersCollection in Collections Preparation Event

Created on 18 September 2024, 3 months ago

Problem/Motivation

In the event subscriber EcaParameters, the $collection variable is assigned to the same value as the $storage variable, so the wrong value is added to the parameters collection. It causes errors in the parameters module such as:

Error: Call to undefined method Drupal\parameters\Entity\ParametersCollectionStorage::getStatus() in Drupal\parameters\ParameterRepository->getParameter()

Steps to reproduce

Enable the eca_parameter module, and configure an ECA workflow which executes the action "Get parameter".

Proposed resolution

The $collection variable should be assigned as the result of $storage->load(static::$collectionId).

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇩🇪Germany qichanghai Munich

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024