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.
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.
Comment | File | Size | Author |
---|---|---|---|
sapi-index-sleep.patch | 590 bytes | klausi | |
Comments
Comment #1
drunken monkeyAh, yes, that was a misconception on my part. Thanks for spotting this! Committed.