Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Framework
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2016 at 16:05 UTC
Updated:
8 Feb 2017 at 16:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
klausiPatch.
Comment #3
drunken monkeyThanks for reporting this issue! Seems we forgot to think about old serialized queries/filters when implementing this. Easy to miss, I guess.
However, instead of checking for an illegal return value in the Solr backend, I think we should just eliminate the root cause: the
getTags()says it'll always return an array, so it should. Patch attached.Regading removal of
method_exists(): that's still needed in case someone updates the Solr module but has an outdated Search API module. "Don't do that!" is of course the right answer, but I think we both know that it'll still happen.Comment #4
klausiMakes sense!
So the method returns by reference, but you return an array which is not a reference to $this->tags.
You should set $this->tags to the empty array first and then return that.
Comment #5
drunken monkeyCorrect, of course – thanks for catching that!
Otherwise, would you say this is RTBC?
Comment #7
drunken monkeyShould be fine, so: committed.
Thanks again for reporting!