From 82c0995f2e29dc007cb0794ad4b41d24fe1a73ab Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 5 Mar 2025 16:18:56 +0530 Subject: [PATCH] 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 (cherry picked from commit 506dd3c6b94c25b1db4f35bf62fabf9d44f5ac00) Co-authored-by: Ben Kebdani --- erpnext/support/doctype/issue/issue.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/support/doctype/issue/issue.js b/erpnext/support/doctype/issue/issue.js index 03d209e99e3..eb53469acd5 100644 --- a/erpnext/support/doctype/issue/issue.js +++ b/erpnext/support/doctype/issue/issue.js @@ -15,7 +15,9 @@ frappe.ui.form.on("Issue", { } } ); + }, + refresh: function (frm) { // buttons if (frm.doc.status !== "Closed") { frm.add_custom_button(__("Close"), function () {