[minor] fixes in update_in_all_rows

This commit is contained in:
mbauskar 2017-04-11 17:36:29 +05:30 committed by Nabin Hait
parent 70078d7450
commit 92dcd79a84

View file

@ -489,7 +489,7 @@ _f.Frm.prototype.make_new = function(doctype) {
_f.Frm.prototype.update_in_all_rows = function(table_fieldname, fieldname, value) {
// update the child value in all tables where it is missing
if(!value) return;
var cl = doc[table_fieldname] || [];
var cl = this.doc[table_fieldname] || [];
for(var i = 0; i < cl.length; i++){
if(!cl[i][fieldname]) cl[i][fieldname] = value;
}