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

#1045864 Termine wieder anlegbar, über Kontexte und im Cal

parent d6ee0b9a
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,11 @@ import("system.calendars");
import("Calendar_lib");
import("system.date");
import("Context_lib");
import("system.util");
var params = {};
params["Entry_param"] = JSON.stringify(CalendarUtil.createEntry(calendars.VEVENT, "", "", false, ContextUtils.getCurrentContextId(), vars.get("$field.ORGANISATIONID")));
params["Entry_param"] = JSON.stringify(CalendarUtil.createEntry(util.getNewUUID(), calendars.VEVENT, "", "", false, ContextUtils.getCurrentContextId(), vars.get("$field.ORGANISATIONID")));
neon.openContext("Appointment", "AppointmentEdit_view", null, neon.OPERATINGSTATE_NEW, params);
......@@ -4,8 +4,9 @@ import("system.calendars");
import("Calendar_lib");
import("system.date");
import("Context_lib");
import("system.util");
var params = {};
params["Entry_param"] = JSON.stringify(CalendarUtil.createEntry(calendars.VEVENT, "", "", false, ContextUtils.getCurrentContextId(), vars.get("$field.CONTACTID")));
params["Entry_param"] = JSON.stringify(CalendarUtil.createEntry(util.getNewUUID(), calendars.VEVENT, "", "", false, ContextUtils.getCurrentContextId(), vars.get("$field.CONTACTID")));
neon.openContext("Appointment", "AppointmentEdit_view", null, neon.OPERATINGSTATE_NEW, params);
\ No newline at end of file
......@@ -218,7 +218,7 @@ CalendarUtil.newSilentEvent = function( pSummary, pDescription, pWithLink, pUser
*
@return {Object} das EntryObjekt
*/
CalendarUtil.createEntry = function( pType, pSummary, pDescription, pWithLink, pAppLinkContext, pAppLinkId, pUser, pAffectedUsers, pStart, pDuration, pCategory, pStatus, pPriority, pReminder )
CalendarUtil.createEntry = function(pUid, pType, pSummary, pDescription, pWithLink, pAppLinkContext, pAppLinkId, pUser, pAffectedUsers, pStart, pDuration, pCategory, pStatus, pPriority, pReminder )
{
var Entry = {};
var framename;
......@@ -276,6 +276,9 @@ CalendarUtil.createEntry = function( pType, pSummary, pDescription, pWithLink, p
}
if(pUid)
Entry[calendars.ID] = pUid;
Entry[calendars.USER] = calendars.getCalendarUser(pUser);
Entry[calendars.DESCRIPTION] = pDescription;
Entry[calendars.SUMMARY] = pSummary;
......
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