[fix] [minor] call refresh_fields after cur_frm.call when doc is passed

This commit is contained in:
Anand Doshi 2013-07-25 19:13:45 +05:30
parent 832caf0e40
commit 955f07dd75
2 changed files with 8 additions and 1 deletions

View file

@ -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);
}

View file

@ -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) {