Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Plugins
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2014 at 15:56 UTC
Updated:
1 Oct 2014 at 11:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pfrenssenPatch uses
drupal_array_diff_assoc_recursive()which was added in Drupal 7.23 so this raises the required minimum Drupal version.If this is a problem we can backport it as a protected method, or rename it as search_api_array_diff_assoc_recursive().
Comment #2
pfrenssenComment #3
drunken monkeyThanks for reporting!
You're right, for some reason we clear the static cache when saving the index, but not the persistent one, instead trying to only do that when it's really necessary. We could add additional code that makes sure the available fields also stay the same, but I think it makes more sense to just get rid of that and always clear the persistent cache, too, when editing the index. It shouldn't happen that often, after all.
Patch attached.
Comment #4
drunken monkeyOops, the previous patch would have failed to call
fieldsUpdated()when the fields change. Good thing I just spotted this when I wanted to commit …Could you please test the attached patch and see if that works for you? Then I would commit it in a few days.
Comment #5
drunken monkeyCommitted.