Browse Source

[fix] Refresh dependency from refresh_field and refresh_many

version-14
Nabin Hait 9 years ago
parent
commit
43e03b6c0b
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      frappe/public/js/legacy/form.js

+ 4
- 2
frappe/public/js/legacy/form.js View File

@@ -474,8 +474,10 @@ _f.Frm.prototype.render_form = function(is_a_different_doc) {
} }


_f.Frm.prototype.refresh_field = function(fname) { _f.Frm.prototype.refresh_field = function(fname) {
cur_frm.fields_dict[fname] && cur_frm.fields_dict[fname].refresh
&& cur_frm.fields_dict[fname].refresh();
if(cur_frm.fields_dict[fname] && cur_frm.fields_dict[fname].refresh) {
cur_frm.fields_dict[fname].refresh();
this.layout.refresh_dependency();
}
} }


_f.Frm.prototype.refresh_fields = function() { _f.Frm.prototype.refresh_fields = function() {


Loading…
Cancel
Save