From 8d988456b1a8129a086a168c17c0ef6522fc2c33 Mon Sep 17 00:00:00 2001
From: "a.schindlbeck" <a.schindlbeck@adito.de>
Date: Wed, 10 Jun 2020 14:39:29 +0200
Subject: [PATCH] Revert "#1057422 Notifications: onDBDelete uses
 notifications.deleteContentIfOrphan"

This reverts commit 8279cebb7e7af1018ec7dc0cefd4cbcb3634219b.
---
 entity/Notification_entity/Notification_entity.aod           | 1 -
 entity/Notification_entity/recordcontainers/db/onDBDelete.js | 5 -----
 2 files changed, 6 deletions(-)
 delete mode 100644 entity/Notification_entity/recordcontainers/db/onDBDelete.js

diff --git a/entity/Notification_entity/Notification_entity.aod b/entity/Notification_entity/Notification_entity.aod
index e337c20729..3268918106 100644
--- a/entity/Notification_entity/Notification_entity.aod
+++ b/entity/Notification_entity/Notification_entity.aod
@@ -166,7 +166,6 @@
       <fromClauseProcess>%aditoprj%/entity/Notification_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
       <conditionProcess>%aditoprj%/entity/Notification_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
       <orderClauseProcess>%aditoprj%/entity/Notification_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess>
-      <onDBDelete>%aditoprj%/entity/Notification_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
       <linkInformation>
         <linkInformation>
           <name>c4e34b96-6081-4d04-8377-040a8ed3e14c</name>
diff --git a/entity/Notification_entity/recordcontainers/db/onDBDelete.js b/entity/Notification_entity/recordcontainers/db/onDBDelete.js
deleted file mode 100644
index 05d1a30c0a..0000000000
--- a/entity/Notification_entity/recordcontainers/db/onDBDelete.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import("system.vars");
-import("system.notification");
-
-// Deletes notificationContents from its table, if there are no
-notification.deleteContentIfOrphan(vars.get("$field.ID"), vars.get("$field.CONTENTID"));
\ No newline at end of file
-- 
GitLab