Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
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
xrm
basic
Commits
603ca1ef
Commit
603ca1ef
authored
6 years ago
by
Andreas Schindlbeck
Browse files
Options
Downloads
Plain Diff
Merge branch 'Feature_1024216_REcurrence' of gitlab.adito.de:xrm/basic
parents
1f2757c5
de429536
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entity/Appointment_entity/contentProcess.js
+23
-3
23 additions, 3 deletions
entity/Appointment_entity/contentProcess.js
with
23 additions
and
3 deletions
entity/Appointment_entity/contentProcess.js
+
23
−
3
View file @
603ca1ef
...
...
@@ -6,9 +6,16 @@ import("system.datetime");
import
(
"
system.eMath
"
);
import
(
"
system.util
"
);
// $param.entry is potentially a recurrence exception.
if
(
vars
.
exists
(
"
$param.entry
"
))
{
var
entry
=
JSON
.
parse
(
vars
.
getString
(
"
$param.entry
"
));
var
masterEntry
=
null
;
if
(
vars
.
exists
(
"
$param.masterEntry
"
)
&&
vars
.
get
(
"
$param.masterEntry
"
)
!=
""
)
{
masterEntry
=
JSON
.
parse
(
vars
.
get
(
"
$param.masterEntry
"
));
}
logging
.
log
(
"
Appointment is recurrence exception:
"
+
(
masterEntry
!=
null
))
var
uid
=
entry
[
calendars
.
ID
];
var
summary
=
entry
[
calendars
.
SUMMARY
];
...
...
@@ -26,11 +33,24 @@ if(vars.exists("$param.entry"))
var
transparency
=
entry
[
calendars
.
TRANSPARENCY
];
var
categories
=
entry
[
calendars
.
CATEGORIES
];
var
masterBegin
=
masterEntry
!=
null
?
masterEntry
[
calendars
.
DTSTART
]
:
null
var
masterEnd
=
masterEntry
!=
null
?
masterEntry
[
calendars
.
DTEND
]
:
null
// Recurrence
var
recurrenceID
=
entry
[
calendars
.
RECURRENCEID
];
var
rrule
=
null
;
if
(
masterEntry
!=
null
)
{
// Entry is a recurrence exception, therefore get rrule from master
rrule
=
masterEntry
[
calendars
.
RRULE
]
!=
null
?
masterEntry
[
calendars
.
RRULE
][
0
]
:
null
;
}
else
{
rrule
=
entry
[
calendars
.
RRULE
]
!=
null
?
entry
[
calendars
.
RRULE
][
0
]
:
null
;
}
//@TODO Icon
result
.
object
([
[
uid
,
''
,
''
,
attendees
.
length
,
startdate
,
enddate
,
summary
,
organizer
,
attendees
,
status
,
links
,
description
,
location
,
''
,
classification
,
transparency
,
categories
]
//reminder, remindercheck
]);
[
uid
,
''
,
''
,
attendees
.
length
,
startdate
,
enddate
,
summary
,
organizer
,
attendees
,
status
,
links
,
description
,
location
,
''
,
classification
,
transparency
,
categories
,
rrule
,
recurrenceID
,
null
,
masterBegin
,
masterEnd
]
//reminder, remindercheck
]);
}
else
{
...
...
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