Fix the condition in BehaviorInvoker::getEntity()

Created on 21 June 2023, about 1 year ago
Updated 22 June 2023, about 1 year ago

Problem/Motivation

Here is the relevant code:

if ($entity instanceof EntityInterface && $this->entityHelper->entityTypeIsSupported($entity->getEntityType())) {
    return $entity;
}

It checks whether the entity type is supported, which is basically anything that has canonical link.
We should check whether the entity type is enabled to avoid unnecessary processing.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Matroskeen πŸ‡ΊπŸ‡¦ Ukraine, Lutsk

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

Comments & Activities

Production build 0.69.0 2024