Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
f743584c
Commit
f743584c
authored
7 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-3069: clone updated event to initialize the immutable fields with the last data
parent
8df7f1d9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/commons/calendar/manager/ICalFileCalendarManager.java
+4
-2
4 additions, 2 deletions
...lat/commons/calendar/manager/ICalFileCalendarManager.java
with
4 additions
and
2 deletions
src/main/java/org/olat/commons/calendar/manager/ICalFileCalendarManager.java
+
4
−
2
View file @
f743584c
...
...
@@ -354,7 +354,7 @@ public class ICalFileCalendarManager implements CalendarManager, InitializingBea
@Override
public
boolean
persistCalendar
(
Kalendar
kalendar
)
{
Calendar
calendar
=
buildCalendar
(
kalendar
);
boolean
success
=
writeCalendarFile
(
calendar
,
kalendar
.
getType
(),
kalendar
.
getCalendarID
());
boolean
success
=
writeCalendarFile
(
calendar
,
kalendar
.
getType
(),
kalendar
.
getCalendarID
());
calendarCache
.
update
(
getKeyFor
(
kalendar
.
getType
(),
kalendar
.
getCalendarID
()),
kalendar
);
return
success
;
}
...
...
@@ -1204,7 +1204,9 @@ public class ICalFileCalendarManager implements CalendarManager, InitializingBea
}
reloadedCal
.
removeEvent
(
kalendarEvent
);
// remove old event
reloadedCal
.
addEvent
(
kalendarEvent
);
// add changed event
// clone the event to initialize the immutable date used to control moving events
KalendarEvent
clonedEvent
=
getKalendarEvent
(
getVEvent
(
kalendarEvent
));
reloadedCal
.
addEvent
(
clonedEvent
);
// add changed event
boolean
successfullyPersist
=
persistCalendar
(
reloadedCal
);
// inform all controller about calendar change for reload
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment