The problem is very simple: if you try to access $entity->original on a BC entity you get a fatal because the original entity object is treated as an array in the magic getter.

CommentFileSizeAuthor
#1 entity-bc_decorator_fix-1869250-55.patch1.17 KBplach
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plach’s picture

Status: Active » Needs review
FileSize
1.17 KB

The attached patch adds a check to detect this situation.

fago’s picture

Status: Needs review » Reviewed & tested by the community

True, an isset($var['key']) fails if $var is an object. Good fix.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.