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

AppointmentLinks autom. löschen nach Appointmentlöschung

parent 5b60d2b2
No related branches found
No related tags found
No related merge requests found
import("Sql_lib");
import("system.neon");
import("system.calendars");
import("system.vars");
import("system.db");
if (vars.exists("$param.Entry_param"))
......@@ -10,4 +12,14 @@ if (vars.exists("$param.Entry_param"))
if (reccurenceid == undefined)
reccurenceid = null;
calendars.removeEntryByUID(calendars.VEVENT, vars.get("$sys.user"), entry[calendars.ID], reccurenceid)
/**
* Deletes ApointmentLinks referring to the deleted Appointment.
*/
var cond = SqlCondition.begin();
cond.andPrepareValue("AB_APPOINTMENTLINK.APPOINTMENT_ID", entry[calendars.ID])
var idscond = db.translateCondition(cond.build("1 = 2"));
db.deleteData("AB_APPOINTMENTLINK", idscond);
}
\ 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