From 4863da215059f8c39ef66a001efbcb9294d0d4a2 Mon Sep 17 00:00:00 2001 From: Daniel Beck <1831569+daniel-beck@users.noreply.github.com> Date: Tue, 3 May 2022 13:18:04 +0200 Subject: [PATCH] Fix type in tooltip of newly added rows (#121) Co-authored-by: Daniel Beck --- .../matrixauth/AuthorizationContainerDescriptor.java | 2 +- .../GlobalMatrixAuthorizationStrategy/config.jelly | 2 ++ src/main/resources/hudson/security/table.js | 9 +++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/jenkinsci/plugins/matrixauth/AuthorizationContainerDescriptor.java b/src/main/java/org/jenkinsci/plugins/matrixauth/AuthorizationContainerDescriptor.java index 9a46fd56..522b9d9e 100644 --- a/src/main/java/org/jenkinsci/plugins/matrixauth/AuthorizationContainerDescriptor.java +++ b/src/main/java/org/jenkinsci/plugins/matrixauth/AuthorizationContainerDescriptor.java @@ -132,7 +132,7 @@ default PermissionEntry entryFor(String type, String sid) { @Restricted(DoNotUse.class) // Jelly only; cf. UpdateCenter#getCategoryDisplayName in core default String getTypeLabel(String type) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException { if (type == null) { - return null; + return "__TYPE__"; // placeholder } return Messages.class.getMethod("TypeLabel_" + type).invoke(null).toString(); } diff --git a/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly b/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly index 99dc9a95..38be4d34 100644 --- a/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly +++ b/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly @@ -181,6 +181,7 @@ THE SOFTWARE.