Changing a search index provided in code does not change the entity status flag correctly (should be "Overridden" but remains "Default". This also affects the Features export where you cannot export your modified search index.

Cause of the problem: the __sleep() method does not preserve the entity status, so the index is serialized as incomplete object during form create/submit. Attached patch removes critical entity information from the serialization exceptions.

CommentFileSizeAuthor
sapi-index-sleep.patch590 bytesklausi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey’s picture

Status: Needs review » Fixed

Ah, yes, that was a misconception on my part. Thanks for spotting this! Committed.

Status: Fixed » Closed (fixed)

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