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:21 UTC

[syncope] branch 2_0_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_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


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

commit c0b0ac84c14bd407ec0b28ad34cbd4fb979ab962
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 e45f6cb..a3a5d1c 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);