Skip to content

Commit 9acbdc3

Browse files
authored
Merge pull request #2288 from nextcloud/artonge/fix/target_child_for_path
fix(ShareProvider): Target share child when looking with path
2 parents 862c041 + 83fd49d commit 9acbdc3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/Db/CoreQueryBuilder.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -346,17 +346,11 @@ public function limitToFileSource(int $nodeId): void {
346346
}
347347

348348
public function limitToFileTarget(string $target, string $alias): void {
349-
$this->orWhere(
350-
$this->exprLimit('file_target', $target),
351-
$this->exprLimit('file_target', $target, $alias),
352-
);
349+
$this->exprLimit('file_target', $target, $alias);
353350
}
354351

355352
public function limitToFileTargetLike(string $target, string $alias): void {
356-
$this->orWhere(
357-
$this->exprLike('file_target', $target),
358-
$this->exprLike('file_target', $target, $alias),
359-
);
353+
$this->exprLike('file_target', $target, $alias);
360354
}
361355

362356
/**

0 commit comments

Comments
 (0)