Conflict with module https://www.drupal.org/project/trash

Created on 25 January 2024, about 1 year ago
Updated 31 January 2024, about 1 year ago

Problem/Motivation

Module trash 'move' temporary entities to trash, but nid and other values are still in table.
in rebuildTree function get trashed id, because it's in node table, but when you try load in $entity = \Drupal::entityTypeManager()
->getStorage($entity_type_id)
->load($entity_id);
$entity isnull and then method get() throw call to a member function get() on null.

Steps to reproduce

Install trash module, move node to trash, rebuild tree.

Proposed resolution

Just check if entity exist before get field.

πŸ› Bug report
Status

Needs work

Version

3.0

Component

Code (module)

Created by

πŸ‡΅πŸ‡±Poland Pawelgorski87

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

Comments & Activities

Production build 0.71.5 2024