If the "webform query" service has to be called several times on the same request, it won't reset conditions of the first query and those conditions will be appended to the next queries. That is why it should probably not be implemented as a service.
As a workaround I had to use:
$query = new WebformQuery(Database::getConnection ());
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform_query_clear_conditions-3021781-2.patch | 469 bytes | imclean |
Comments
Comment #2
imclean commentedI don't have a lot of time to work on this until the new year, but try this patch. It clears the conditions after the query has been built.
Comment #3
progzy commentedSeems to work. Thank you!
Comment #5
imclean commented