Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kolab
roundcube-plugins
Commits
d0f57081
Commit
d0f57081
authored
Jan 07, 2015
by
Thomas Bruederli
Browse files
Accept parent-relation from RELATED-TO property without RELTYPE parameter (#4158)
parent
51281bc4
Changes
3
Hide whitespace changes
Inline
Side-by-side
plugins/libcalendaring/libvcalendar.php
View file @
d0f57081
...
...
@@ -453,7 +453,8 @@ class libvcalendar implements Iterator
break
;
case
'RELATED-TO'
:
if
(
$prop
->
offsetGet
(
'RELTYPE'
)
==
'PARENT'
)
{
$reltype
=
$prop
->
offsetGet
(
'RELTYPE'
);
if
(
$reltype
==
'PARENT'
||
$reltype
===
null
)
{
$event
[
'parent_id'
]
=
$prop
->
value
;
}
break
;
...
...
plugins/libcalendaring/tests/libvcalendar.php
View file @
d0f57081
...
...
@@ -318,6 +318,7 @@ class libvcalendar_test extends PHPUnit_Framework_TestCase
$this
->
assertEquals
(
'IN-PROCESS'
,
$task
[
'status'
],
"Task status property"
);
$this
->
assertEquals
(
1
,
count
(
$task
[
'x-custom'
]),
"Custom properties"
);
$this
->
assertEquals
(
4
,
count
(
$task
[
'categories'
]));
$this
->
assertEquals
(
'1234567890-12345678-PARENT'
,
$task
[
'parent_id'
],
"Parent Relation"
);
}
/**
...
...
plugins/libcalendaring/tests/resources/vtodo.ics
View file @
d0f57081
...
...
@@ -31,6 +31,8 @@ SEQUENCE:2
CATEGORIES:Tag1,Tag2
CATEGORIES:Tag3
CATEGORIES:Tag4
RELATED-TO:1234567890-12345678-PARENT
RELATED-TO;RELTYPE=CHILD:1234567890-12345678-CHILD
X-MOZ-GENERATION:1
BEGIN:VALARM
ACTION:DISPLAY
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment