- Issue created by @dahousecat
- 🇬🇧United Kingdom dahousecat
This is the patch I'm using as I know I will only 1 have instance per page.
This patch won't work if you have multiple views on the same page all using this sorting plugin.
When I using this plugin I see the query() method is called twice, once from ViewExecutable and then again from ExposedFormPluginBase.
The first time the $placeholder_suffix is built correctly as the placeholder function has the correct state.
However the second time this fails as the placeholder function state was modified the first time round.
Looks like it's having an exposed form the triggers this method to be called twice.
Cache the placeholder suffix in the local class the first time it's generated to can be used again.
Of course consideration may need to be given to what happens if there are multiple views using this feature on the same page.
Active
2.0
Code
This is the patch I'm using as I know I will only 1 have instance per page.
This patch won't work if you have multiple views on the same page all using this sorting plugin.