fix(product): Correctly fetch category descendants by handle (#13579)

This PR fixes the issue #13518  where product category descendants were not retrieved when
filtering by handle with the include_descendants_tree flag. The handle filter was not
being correctly removed before the descendant tree query was executed.
This commit is contained in:
Hakim Saoudi
2025-09-23 16:40:31 +02:00
committed by GitHub
parent 513b352da3
commit a501364b2d
3 changed files with 33 additions and 0 deletions

View File

@@ -182,6 +182,7 @@ export class ProductCategoryRepository extends DALUtils.MikroOrmBaseTreeReposito
} as MikroOptions<any>
delete where.id
delete where.handle
delete where.mpath
delete where.parent_category_id