Browse Source

[fix] Form set viewers (#4341)

version-14
Faris Ansari 7 years ago
committed by GitHub
parent
commit
4b3d13b0ed
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/form/form_viewers.js

+ 1
- 1
frappe/public/js/frappe/form/form_viewers.js View File

@@ -74,7 +74,7 @@ frappe.ui.form.set_viewers = function(data) {
current: viewers
});

if (cur_frm.doc && cur_frm.doc.doctype===doctype && cur_frm.doc.name==docname) {
if (cur_frm && cur_frm.doc && cur_frm.doc.doctype===doctype && cur_frm.doc.name==docname) {
cur_frm.viewers.refresh(true);
}
}

Loading…
Cancel
Save