Merge pull request #8000 from hrwX/mul_sel
fix(MultiSelect): Do not auto check oldest value in MultiSelect Dialog results
This commit is contained in:
commit
b4e57dba40
1 changed files with 4 additions and 0 deletions
|
|
@ -300,6 +300,10 @@ frappe.ui.form.MultiSelectDialog = Class.extend({
|
|||
return a.parsed_date - b.parsed_date;
|
||||
});
|
||||
|
||||
// Preselect oldest entry
|
||||
if (me.start < 1 && r.values.length === 1) {
|
||||
results[0].checked = 1;
|
||||
}
|
||||
}
|
||||
me.render_result_list(results, more);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue