fix: set first option as value for 'is' condition if no value selected

This commit is contained in:
prssanna 2019-11-12 19:06:43 +05:30
parent 2a751b13b9
commit eae67eb0dd

View file

@ -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);
}