Fails if called twice

Created on 7 May 2024, about 2 months ago

Problem/Motivation

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.

Steps to reproduce

Looks like it's having an exposed form the triggers this method to be called twice.

Proposed resolution

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.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom dahousecat

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024