mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Add check for filterPath length when not having m2o/a2o relation in order to add nested filters (#11768)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -347,7 +347,7 @@ export function applyFilter(
|
||||
} else {
|
||||
applyFilterToQuery(`${collection}.${filterPath[0]}`, filterOperator, filterValue, logical);
|
||||
}
|
||||
} else if (subQuery === false) {
|
||||
} else if (subQuery === false || filterPath.length > 1) {
|
||||
if (!relation) continue;
|
||||
|
||||
let pkField: Knex.Raw<any> | string = `${collection}.${
|
||||
|
||||
Reference in New Issue
Block a user