[hotfix] don't auto-sync standard fields of child values in frm.call

This commit is contained in:
Anand Doshi 2016-01-21 21:27:39 +05:30
parent 07c28a254a
commit 30ca7b1143

View file

@ -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