You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2020/04/09 08:35:25 UTC

[syncope] branch 2_1_X updated: Minor: do not treat event subcategory as translatable string

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_1_X by this push:
     new 98b3aca  Minor: do not treat event subcategory as translatable string
98b3aca is described below

commit 98b3aca34fcca0b199d280d3a857d6ee9a35118f
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Thu Apr 9 10:34:45 2020 +0200

    Minor: do not treat event subcategory as translatable string
---
 .../org/apache/syncope/client/console/events/EventSelectionPanel.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/client/console/src/main/java/org/apache/syncope/client/console/events/EventSelectionPanel.java b/client/console/src/main/java/org/apache/syncope/client/console/events/EventSelectionPanel.java
index 5c73248..ea53bd8 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/events/EventSelectionPanel.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/events/EventSelectionPanel.java
@@ -102,9 +102,7 @@ public abstract class EventSelectionPanel extends Panel {
 
             @Override
             protected void populateItem(final ListItem<String> item) {
-                final String subcategory = item.getModelObject();
-
-                item.add(new Label("subcategory", new ResourceModel(subcategory, subcategory)));
+                item.add(new Label("subcategory", Model.of(item.getModelObject())));
             }
         };
         add(categoryView);