From fb12873155c40bf7e24e8f45f0f5d5db6e2d75c0 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Wed, 18 Jun 2025 09:59:32 +0100 Subject: [PATCH] IBX-10174 Add fetch limit to Is Within Copy Subtree Limit --- src/lib/Specification/Location/IsWithinCopySubtreeLimit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Specification/Location/IsWithinCopySubtreeLimit.php b/src/lib/Specification/Location/IsWithinCopySubtreeLimit.php index c70c432874..1d2e2d0a6a 100644 --- a/src/lib/Specification/Location/IsWithinCopySubtreeLimit.php +++ b/src/lib/Specification/Location/IsWithinCopySubtreeLimit.php @@ -44,7 +44,7 @@ public function isSatisfiedBy($item): bool return false; } - return $this->copyLimit >= $this->locationService->getSubtreeSize($item); + return $this->copyLimit >= $this->locationService->getSubtreeSize($item, $this->copyLimit + 1); } private function isContainer(Location $location): bool