mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Specificly search for field id vs name
This commit is contained in:
@ -293,7 +293,7 @@ getItemQuery model =
|
||||
|> List.head
|
||||
|> Maybe.map (Q.ConcEquipId Q.Eq)
|
||||
, whenNotEmpty (Data.CustomFieldChange.toFieldValues model.customValues)
|
||||
(List.map (Q.CustomField Q.Like) >> Q.And)
|
||||
(List.map (Q.CustomFieldId Q.Like) >> Q.And)
|
||||
, Maybe.map (Q.DateMs Q.Gte) model.fromDate
|
||||
, Maybe.map (Q.DateMs Q.Lte) model.untilDate
|
||||
, Maybe.map (Q.DueDateMs Q.Gte) model.fromDueDate
|
||||
|
@ -44,6 +44,7 @@ type ItemQuery
|
||||
| ConcPersId AttrMatch String
|
||||
| ConcEquipId AttrMatch String
|
||||
| CustomField AttrMatch CustomFieldValue
|
||||
| CustomFieldId AttrMatch CustomFieldValue
|
||||
| DateMs AttrMatch Int
|
||||
| DueDateMs AttrMatch Int
|
||||
| Source AttrMatch String
|
||||
@ -153,6 +154,9 @@ render q =
|
||||
CustomField m kv ->
|
||||
"f:" ++ kv.field ++ attrMatch m ++ quoteStr kv.value
|
||||
|
||||
CustomFieldId m kv ->
|
||||
"f.id:" ++ kv.field ++ attrMatch m ++ quoteStr kv.value
|
||||
|
||||
DateMs m ms ->
|
||||
"date" ++ attrMatch m ++ "ms" ++ String.fromInt ms
|
||||
|
||||
|
Reference in New Issue
Block a user