Using the default focal point on new crop entities error

Created on 25 September 2024, 3 days ago

Problem/Motivation

When you need to do a batch process to update many entity and the process fail.

Steps to reproduce

You need to have a process batch to update large amount of data and some data is pass a null value in a entity.

Proposed resolution

you should replace this line:

if ($crop->isNew()) {

to:

if ($crop && $crop instanceof \Drupal\crop\Entity\Crop && $crop->isNew()) {
🐛 Bug report
Status

Fixed

Version

2.1

Component

Other Code

Created by

🇪🇸Spain jifernandezs

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

Comments & Activities

Production build 0.71.5 2024