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 ());

Comments

progzy created an issue. See original summary.

imclean’s picture

Status: Active » Needs review
StatusFileSize
new469 bytes

I 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.

progzy’s picture

Seems to work. Thank you!

  • imclean committed dc1ba3f on 8.x-1.x
    Issue #3021781 by imclean, progzy: This should probably not be...
imclean’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.