[fix] [minor] call refresh_fields after cur_frm.call when doc is passed
This commit is contained in:
parent
832caf0e40
commit
955f07dd75
2 changed files with 8 additions and 1 deletions
|
|
@ -261,6 +261,14 @@ _f.Frm.prototype.call = function(opts) {
|
|||
}
|
||||
opts.original_callback && opts.original_callback(r);
|
||||
}
|
||||
} else {
|
||||
opts.original_callback = opts.callback;
|
||||
opts.callback = function(r) {
|
||||
if(!r.exc) me.refresh_fields();
|
||||
|
||||
opts.original_callback && opts.original_callback(r);
|
||||
}
|
||||
|
||||
}
|
||||
wn.call(opts);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -201,7 +201,6 @@ wn.views.moduleview.ModuleView = Class.extend({
|
|||
doctypes: me.doctypes
|
||||
},
|
||||
callback: function(r) {
|
||||
console.log(r);
|
||||
if(r.message) {
|
||||
// reports
|
||||
if(r.message.reports.length) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue