Problem/Motivation

Add 'Where' statements to query (in a relation) only if the relation is required.

Proposed resolution

See Patch.

Remaining tasks

Review patch.

User interface changes

None

API changes

None

Data model changes

None

Comments

tomhollevoet created an issue. See original summary.

tomhollevoet’s picture

StatusFileSize
new1.25 KB
borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Doing a query with the where for non-required items does lead to the wrong results. This fixes that. Looks great.

nikita_tt’s picture

StatusFileSize
new3.38 KB

Here is a patch with another way to resolve the issue.

nkoporec’s picture

Status: Reviewed & tested by the community » Fixed

Commited patch #2, with some additional fixes, thanks everyone!

Status: Fixed » Closed (fixed)

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

nikita_tt’s picture

nikita_tt’s picture