[table fields] [on *] trigger when parentfield also matches
This commit is contained in:
parent
15e3e804e4
commit
44fe7bb394
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ _f.Frm.prototype.watch_model_updates = function() {
|
|||
// on table fields
|
||||
$.each(wn.model.get("DocField", {fieldtype:"Table", parent: me.doctype}), function(i, df) {
|
||||
wn.model.on(df.options, "*", function(fieldname, value, doc) {
|
||||
if(doc.parent===me.docname) {
|
||||
if(doc.parent===me.docname && doc.parentfield===df.fieldname) {
|
||||
me.fields_dict[df.fieldname].grid.set_value(fieldname, value, doc);
|
||||
me.script_manager.trigger(fieldname, doc.doctype, doc.name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue