mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-04 18:39:33 +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(cfv.itemId),
|
||||
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