From 5dbb75bb0126ae848f6fb12660179ff5267d0014 Mon Sep 17 00:00:00 2001 From: Vincent Latombe Date: Mon, 25 Mar 2024 09:05:27 +0100 Subject: [PATCH 1/2] Set current object to be the administrative monitor itself when loading its description --- .../AdministrativeMonitorsConfiguration/config.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/resources/jenkins/management/AdministrativeMonitorsConfiguration/config.groovy b/core/src/main/resources/jenkins/management/AdministrativeMonitorsConfiguration/config.groovy index fb00245ad877..bd0bb30bc913 100644 --- a/core/src/main/resources/jenkins/management/AdministrativeMonitorsConfiguration/config.groovy +++ b/core/src/main/resources/jenkins/management/AdministrativeMonitorsConfiguration/config.groovy @@ -46,7 +46,7 @@ f.section(title: _("Administrative monitors configuration")) { } div(class: "tr") { div(class: "jenkins-checkbox__description") { - st.include(from: am, page: "description", optional: true) + st.include(from: am, it: am, page: "description", optional: true) } } } From d076d56e5403631cca247f2a631e460edb8e4277 Mon Sep 17 00:00:00 2001 From: Vincent Latombe Date: Mon, 25 Mar 2024 13:58:43 +0100 Subject: [PATCH 2/2] Simplify Co-authored-by: Jesse Glick --- .../AdministrativeMonitorsConfiguration/config.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/resources/jenkins/management/AdministrativeMonitorsConfiguration/config.groovy b/core/src/main/resources/jenkins/management/AdministrativeMonitorsConfiguration/config.groovy index bd0bb30bc913..f470918608d3 100644 --- a/core/src/main/resources/jenkins/management/AdministrativeMonitorsConfiguration/config.groovy +++ b/core/src/main/resources/jenkins/management/AdministrativeMonitorsConfiguration/config.groovy @@ -46,7 +46,7 @@ f.section(title: _("Administrative monitors configuration")) { } div(class: "tr") { div(class: "jenkins-checkbox__description") { - st.include(from: am, it: am, page: "description", optional: true) + st.include(it: am, page: "description", optional: true) } } }