Skip to content
Snippets Groups Projects
Commit 17f5d509 authored by Andreas Schindlbeck's avatar Andreas Schindlbeck
Browse files

#1063130 Notifications: Appointment-contents won't be deleted when orphan, because

they would appear again as a notification
parent 0e2e998c
No related branches found
No related tags found
No related merge requests found
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
// Deletes notificationContents from its table, if there are no user notification left
// Only AppointmentContents need to stay, because they would appear again after every deletion.
if(vars.get("$field.TYPECODE") != "_____SYSTEM_NOTIFICATION_APPOINTMENT")
notification.deleteContentIfOrphan(vars.get("$field.ID"), vars.get("$field.CONTENTID"));
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment