Save the record when checkbox is clicked on editable tree view
Since 53ff6c9d8393 checkbox can be toggled even if the record is not the currently selected record. When the changed record is not the currently edited record, it must be saved as editable tree handler will not save it. Closes #14642
This commit is contained in:
1 parent
bbd062a61a
commit
4e97df25ba
1 file changed
+4
@@ -2787,6 +2787,10 @@
|
||||
fields, false, false)) {
|
||||
var value = cell.prop('checked');
|
||||
this.field.set_client(record, value);
|
||||
if (record !== current_record) {
|
||||
// we can not rely on editable tree handler to save the row
|
||||
record.save();
|
||||
}
|
||||
} else {
|
||||
evt.preventDefault();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user