Merge pull request #4582 from Zlash65/fix-multicheck

[Minor] Multicheck control fix
This commit is contained in:
Prateeksha Singh 2017-12-06 15:59:43 +05:30 committed by GitHub
commit 694ab62d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ frappe.ui.form.ControlMultiCheck = frappe.ui.form.Control.extend({
refresh_input() {
this.options.map(option => option.value).forEach(value => {
$(this.wrapper)
.find(`:checkbox[data-unit=${value}]`)
.find(`:checkbox[data-unit="${value}"]`)
.prop("checked", this.selected_options.includes(value));
});
},