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:
mergify[bot] 2019-07-26 07:10:02 +00:00 committed by GitHub
commit b4e57dba40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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