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>
This commit is contained in:
Ben Kebdani
2025-03-05 13:04:55 +03:00
committed by GitHub
parent 9a433a6750
commit 506dd3c6b9

View File

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