Skip to content

Commit

Permalink
Fix the check for skipAddTrashCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosp committed Jan 14, 2025
1 parent bbea400 commit 4e5a188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Behavior/TrashBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function trash(EntityInterface $entity, array $options = []): bool
public function beforeFind(EventInterface $event, SelectQuery $query, ArrayObject $options, bool $primary): void
{
$option = $query->getOptions();
if (empty($option['skipAddTrashCondition'])) {
if (!empty($option['skipAddTrashCondition'])) {
return;
}

Expand Down

0 comments on commit 4e5a188

Please # to comment.