Merge pull request #9977 from surajshetty3416/fix-document-save-issue
fix(document): Check is_dirty only if action is save
This commit is contained in:
commit
3f33e5ea70
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ frappe.ui.form.save = function (frm, action, callback, btn) {
|
|||
remove_empty_rows();
|
||||
|
||||
$(frm.wrapper).addClass('validated-form');
|
||||
if (frm.is_dirty() && check_mandatory()) {
|
||||
if ((action !== 'Save' || frm.is_dirty()) && check_mandatory()) {
|
||||
_call({
|
||||
method: "frappe.desk.form.save.savedocs",
|
||||
args: { doc: frm.doc, action: action },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue