Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Framework
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2011 at 10:57 UTC
Updated:
14 Jul 2011 at 12:42 UTC
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.