Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
General code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2022 at 22:17 UTC
Updated:
1 Jul 2023 at 13:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
weekbeforenextComment #3
weekbeforenextAttached is a patch. Not sure if it's the best solution, but it's a first attempt that seems to be working.
Comment #4
weekbeforenextNew patch that defines the themeSwitched() method in the FieldsHelperInterface.
Comment #7
weekbeforenextAdded test fixes.
Comment #8
weekbeforenextComment #10
weekbeforenextFixed more tests...
Comment #11
weekbeforenextComment #12
drunken monkeyThanks for reporting this issue and already providing a patch for fixing it!
However, if the code is exactly the same in both places, then we should probably make it reusable in general. Unfortunately, this doesn’t really fit on any of the existing services, so I propose adding a new one. Patch attached, please test/review!
Comment #13
weekbeforenextThanks for the new patch! I like how the theme switching is now abstracted into it's own service.
The patch applies successfully. I verified the test instructions for a project ticket that kicked off this issue and they still pass.
Reviewing the patch itself, the code looks good to me.
Thanks again!
Comment #14
weekbeforenextComment #16
drunken monkeyGreat to hear, thanks a lot for testing and reviewing!
Merged.
Thanks again!