fix: also added duration fieldtype
This commit is contained in:
parent
2780bc7b40
commit
d783b02dd8
@ -47,6 +47,7 @@ def get_filterable_fields(doctype: str):
|
|||||||
"Small Text",
|
"Small Text",
|
||||||
"Text Editor",
|
"Text Editor",
|
||||||
"Text",
|
"Text",
|
||||||
|
"Duration",
|
||||||
"Date",
|
"Date",
|
||||||
"Datetime",
|
"Datetime",
|
||||||
]
|
]
|
||||||
|
|||||||
@ -247,6 +247,15 @@ function getOperators(fieldtype, fieldname) {
|
|||||||
if (typeCheck.includes(fieldtype)) {
|
if (typeCheck.includes(fieldtype)) {
|
||||||
options.push(...[{ label: 'Equals', value: 'equals' }])
|
options.push(...[{ label: 'Equals', value: 'equals' }])
|
||||||
}
|
}
|
||||||
|
if (['Duration'].includes(fieldtype)) {
|
||||||
|
options.push(
|
||||||
|
...[
|
||||||
|
{ label: 'Like', value: 'like' },
|
||||||
|
{ label: 'Not Like', value: 'not like' },
|
||||||
|
{ label: 'Is', value: 'is' },
|
||||||
|
]
|
||||||
|
)
|
||||||
|
}
|
||||||
if (typeDate.includes(fieldtype)) {
|
if (typeDate.includes(fieldtype)) {
|
||||||
options.push(
|
options.push(
|
||||||
...[
|
...[
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user