1
0
forked from test/crm

Merge pull request #135 from shariquerik/filter-value-fix

fix: value with equal operator does not work
This commit is contained in:
Shariq Ansari 2024-04-15 13:21:06 +05:30 committed by GitHub
commit a2917cc58b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -327,7 +327,7 @@ function getValSelect(f) {
if (fieldtype == 'Dynamic Link') {
return h(FormControl, { type: 'text' })
}
return h(Link, { class: 'form-control', doctype: options })
return h(Link, { class: 'form-control', doctype: options, value: f.value })
} else if (typeNumber.includes(fieldtype)) {
return h(FormControl, { type: 'number' })
} else if (typeDate.includes(fieldtype) && operator == 'between') {
@ -437,8 +437,6 @@ function updateOperator(event, filter) {
function isSameTypeOperator(oldOperator, newOperator) {
let textOperators = [
'like',
'not like',
'equals',
'not equals',
'in',