Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296340

EntityReferenceItem::isEmpty() will return FALSE if the referenced item was deleted.

$
0
0

Problem/Motivation

When the referenced item is deleted targted_id is still present in the reference field, so existing EntityReferenceItem::isEmpty() will return FALSE
This issue causes other functionality to fail. E.g. jsonapi_extras (check child issues).

Proposed resolution

Always check against an entity existense.


Viewing all articles
Browse latest Browse all 296340

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>