mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-07 07:35:59 +00:00
Search by field id or name
This commit is contained in:
parent
18992ee374
commit
f8307f77c6
@ -236,7 +236,11 @@ object ItemQueryGenerator {
|
|||||||
Select(
|
Select(
|
||||||
select(cfv.itemId),
|
select(cfv.itemId),
|
||||||
from(cfv).innerJoin(cf, cf.id === cfv.field),
|
from(cfv).innerJoin(cf, cf.id === cfv.field),
|
||||||
cf.cid === coll && cf.name ==== field && Condition.CompareVal(cfv.value, op, v)
|
cf.cid === coll && (cf.name ==== field || cf.id ==== field) && Condition.CompareVal(
|
||||||
|
cfv.value,
|
||||||
|
op,
|
||||||
|
v
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user