You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by sk...@apache.org on 2019/03/26 13:14:36 UTC

[syncope] branch 2_1_X updated: [SYNCOPE-1452] Fix notification 'about' elements not deleted after update

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

skylark17 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 226be91  [SYNCOPE-1452] Fix notification 'about' elements not deleted after update
226be91 is described below

commit 226be91d410187474feebddc9be3d696d344d158
Author: skylark17 <ma...@tirasa.net>
AuthorDate: Tue Mar 26 14:14:19 2019 +0100

    [SYNCOPE-1452] Fix notification 'about' elements not deleted after update
---
 .../syncope/client/console/notifications/NotificationWrapper.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/console/src/main/java/org/apache/syncope/client/console/notifications/NotificationWrapper.java b/client/console/src/main/java/org/apache/syncope/client/console/notifications/NotificationWrapper.java
index cc3e74e..1375323 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/notifications/NotificationWrapper.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/notifications/NotificationWrapper.java
@@ -77,7 +77,7 @@ public class NotificationWrapper implements Serializable {
     }
 
     public Map<String, String> getAboutFIQLs() {
-        if (CollectionUtils.isEmpty(this.aboutClauses)) {
+        if (CollectionUtils.isEmpty(this.aboutClauses) || this.aboutClauses.get(0).getValue().isEmpty()) {
             return this.notificationTO.getAbouts();
         } else {
             Map<String, String> res = new HashMap<>();