You've already forked lazarus-ccr
tvplanit: Fix import of .ics files with recurring events to database-related datastores.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6511 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1337,6 +1337,7 @@ begin
|
|||||||
continue;
|
continue;
|
||||||
id := DataStore.GetNextID(EventsTableName);
|
id := DataStore.GetNextID(EventsTableName);
|
||||||
FActiveEvent := Datastore.Resource.Schedule.AddEvent(id, starttime, endtime);
|
FActiveEvent := Datastore.Resource.Schedule.AddEvent(id, starttime, endtime);
|
||||||
|
FActiveEvent.Changed := true;
|
||||||
FActiveEvent.LoadFromICalendar(TVpICalEvent(ical[i]));
|
FActiveEvent.LoadFromICalendar(TVpICalEvent(ical[i]));
|
||||||
Datastore.PostEvents;
|
Datastore.PostEvents;
|
||||||
Datastore.NotifyDependents;
|
Datastore.NotifyDependents;
|
||||||
|
@ -1276,6 +1276,7 @@ begin
|
|||||||
continue;
|
continue;
|
||||||
id := DataStore.GetNextID(EventsTableName);
|
id := DataStore.GetNextID(EventsTableName);
|
||||||
FActiveEvent := Datastore.Resource.Schedule.AddEvent(id, starttime, endtime);
|
FActiveEvent := Datastore.Resource.Schedule.AddEvent(id, starttime, endtime);
|
||||||
|
FActiveEvent.Changed := true;
|
||||||
FActiveEvent.LoadFromICalendar(TVpICalEvent(ical[i]));
|
FActiveEvent.LoadFromICalendar(TVpICalEvent(ical[i]));
|
||||||
Datastore.PostEvents;
|
Datastore.PostEvents;
|
||||||
Datastore.NotifyDependents;
|
Datastore.NotifyDependents;
|
||||||
|
Reference in New Issue
Block a user