浏览代码

Unset `toolbar.current_status` on `disable_save`

If the `cur_frm.toolbar.current_status` is not unset, when, `cur_frm.toolbar.enable_save` is called the `Save` button on form is not reloaded!

To certify just go to a form, open the browser console and run

```
cur_frm.disable_save();
cur_frm.enable_save();
```

Without this fix, the button will not released!
version-14
Maxwell Morais 9 年前
父节点
当前提交
35f6f8712a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      frappe/public/js/legacy/form.js

+ 1
- 0
frappe/public/js/legacy/form.js 查看文件

@@ -803,6 +803,7 @@ _f.Frm.prototype.amend_doc = function() {
_f.Frm.prototype.disable_save = function() {
// IMPORTANT: this function should be called in refresh event
this.save_disabled = true;
this.toolbar.current_status = null;
this.page.clear_primary_action();
}



正在加载...
取消
保存