From 281a83e435b0c16a1880a0f9a60e3bd8dd86c407 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Mon, 4 Nov 2019 09:10:13 +0100
Subject: [PATCH] fix notification entity

---
 .../recordcontainers/db/conditionProcess.js                  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/entity/Notification_entity/recordcontainers/db/conditionProcess.js b/entity/Notification_entity/recordcontainers/db/conditionProcess.js
index 60ee39a7156..1f8db6525a0 100644
--- a/entity/Notification_entity/recordcontainers/db/conditionProcess.js
+++ b/entity/Notification_entity/recordcontainers/db/conditionProcess.js
@@ -7,7 +7,6 @@ import("system.tools");
 var user = tools.getCurrentUser();
 var userid = user["name"];
 
-var cond = SqlCondition.begin()
-                    .andPrepareIfSet("ASYS_NOTIFICATIONS.USERID", userid)
+var cond = newWhereIfSet("ASYS_NOTIFICATIONS.USERID", userid)
 
-result.object(cond.translate());
\ No newline at end of file
+result.string(cond.toString());
\ No newline at end of file
-- 
GitLab