Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | entity-bc_decorator_fix-1869250-55.patch | 1.17 KB | plach |
Comments
Comment #1
plachThe attached patch adds a check to detect this situation.
Comment #2
fagoTrue, an isset($var['key']) fails if $var is an object. Good fix.
Comment #3
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks.
Comment #4.0
(not verified) CreditAttribution: commentedUpdated issue summary.