fix: set first option as value for 'is' condition if no value selected
This commit is contained in:
parent
2a751b13b9
commit
eae67eb0dd
1 changed files with 4 additions and 0 deletions
|
|
@ -372,6 +372,10 @@ frappe.ui.filter_utils = {
|
|||
val = strip(val);
|
||||
}
|
||||
|
||||
if(condition == 'is' && !val) {
|
||||
val = field.df.options[0].value;
|
||||
}
|
||||
|
||||
if(field.df.original_type == 'Check') {
|
||||
val = (val=='Yes' ? 1 :0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue