fix: Close and Reopen buttons dissapear after saving changes (backport #46048) (#46325)

fix: Close and Reopen buttons dissapear after saving changes (#46048)

* fix: Close and Reopen buttons dissapear after saving changes

* style: linter issue

---------

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
(cherry picked from commit 506dd3c6b9)

Co-authored-by: Ben Kebdani <benkebdani@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2025-03-05 16:18:56 +05:30
committed by GitHub
parent c4eb577a76
commit 82c0995f2e

View File

@@ -15,7 +15,9 @@ frappe.ui.form.on("Issue", {
}
}
);
},
refresh: function (frm) {
// buttons
if (frm.doc.status !== "Closed") {
frm.add_custom_button(__("Close"), function () {