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.
I have a node index that's kept in a feature. I have a search page associated to that node index (the search page isn't kept in a feature because that's not possible yet), and this search page sometimes magically just disappears from the site. I think, but I'm not sure, it happens when I revert changes to my node index using the features UI.
Let me know what more information I can provide.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1161532--discern-revert-delete.patch | 2.21 KB | drunken monkey |
Comments
Comment #1
drunken monkeyAh, yes, this might really happen when reverting changes to the index. I think
hook_entity_delete()
is called then, causing the search page to be deleted.I'll ask fago about how to discern between reverting and deleting, thanks for reporting this problem!
Comment #2
drunken monkeyCome to think of it, this also affects other parts, like facets and saved searches. However, as those can be made into features, too, that's probably not that much of a problem.
However, once we're at it, we should fix all problems at once.
Does the attached patch fix your problem?
Comment #3
drunken monkeyComment #4
a1russell CreditAttribution: a1russell commentedYes, it does fix my problem. Thanks!
Comment #5
drunken monkeyGreat, committed.