Problem/Motivation

trash_entity_query_alter() alters entity queries for all trash-enabled entity types, and adds a condition on the deleted field.

For entity queries using the OR conjunction, this means that all non-deleted entities will be returned by default.

Proposed resolution

Ensure that entity queries using OR work correctly.

Issue fork trash-3556388

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

amateescu created an issue. See original summary.

amateescu’s picture

Status: Active » Needs review

  • amateescu committed 45b77060 on 3.x
    [#3556388] fix: Entity queries using the OR conjunction are not handled...
amateescu’s picture

Status: Needs review » Fixed

Merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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