Merge pull request #24716 from pateljannat/issue-custom-buttons

fix: custom buttons in issue
This commit is contained in:
Rucha Mahabal 2021-02-24 11:47:29 +05:30 committed by GitHub
commit 402fcbd489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,8 +49,8 @@ frappe.ui.form.on("Issue", {
},
refresh: function (frm) {
if (frm.doc.status !== "Closed" && frm.doc.agreement_status === "Ongoing") {
if (frm.doc.service_level_agreement) {
if (frm.doc.status !== "Closed") {
if (frm.doc.service_level_agreement && frm.doc.agreement_status === "Ongoing") {
frappe.call({
"method": "frappe.client.get",
args: {