This is an automated email from the ASF dual-hosted git repository.
skylark17 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 9ced3a6 [SYNCOPE-1452] Fix notification 'about' elements not deleted
after update
9ced3a6 is described below
commit 9ced3a63bd0c6b60f45b66ffc74bbc0425bfc412
Author: skylark17 <[email protected]>
AuthorDate: Tue Mar 26 14:30:58 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 1d6ee77..ea7311a 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<>();