The EntityListWrapper currently fails when setting a list of fully loaded entities that contains outdated NULL value references.

Here's an example error

EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (line 7724 of your_site/test/includes/common.inc).

It should just ignore those NULL value references.

CommentFileSizeAuthor
#1 2222279_entity_ignore_null_value.patch835 bytesdasjo

Comments

dasjo’s picture

Status: Active » Needs review
StatusFileSize
new835 bytes

attached is a patch to fix the mentioned problem, created thanks to fago's help :)

fago’s picture

Status: Needs review » Fixed

yeah, outdated references are a PITA. Thanks, committed!

Status: Fixed » Closed (fixed)

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