[minor] fixes in update_in_all_rows
This commit is contained in:
parent
70078d7450
commit
92dcd79a84
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue