[hotfix] don't auto-sync standard fields of child values in frm.call
This commit is contained in:
parent
07c28a254a
commit
30ca7b1143
1 changed files with 8 additions and 1 deletions
|
|
@ -283,7 +283,14 @@ _f.Frm.prototype.call = function(opts) {
|
|||
if(opts.child) {
|
||||
// update child doc
|
||||
opts.child = locals[opts.child.doctype][opts.child.name];
|
||||
$.extend(opts.child, r.message);
|
||||
|
||||
var std_field_list = ["doctype"].concat(frappe.model.std_fields_list);
|
||||
for (key in r.message) {
|
||||
if (std_field_list.indexOf(key)===-1) {
|
||||
opts.child[key] = r.message[key];
|
||||
}
|
||||
}
|
||||
|
||||
me.fields_dict[opts.child.parentfield].refresh();
|
||||
} else {
|
||||
// update parent doc
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue