In our (entity) data source controller's loadItems() method, we should remove items from tracking if they couldn't be loaded successfully. This helps to avoid problems when an entity was removed but the appropriate hooks for some reason weren't called. (It also cleans up after our previous temporary problem where entity deletes weren't correctly registered.)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey’s picture

Status: Active » Needs review
FileSize
967 bytes

Patch attached.

drunken monkey’s picture

Slightly cleaner way to do this.

mh86’s picture

Status: Needs review » Reviewed & tested by the community

Adding this check is probably a good idea, and it doesn't hurt if everything is fine.

drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Great, committed.

Status: Fixed » Closed (fixed)

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