Commit cfea6428 authored by Robert Rollins's avatar Robert Rollins

Issue #2709557: X-PROPERTIES now import properly when added via...

Issue #2709557: X-PROPERTIES now import properly when added via hook_date_ical_mapping_sources_alter.
parent 5429bb9d
......@@ -224,6 +224,12 @@ class ParserVcalendar {
unset($vcalendar_component->propix[$property_key]);
}
if (is_array($text) && isset($vcalendar_component->xprop[$property_key])) {
# This is an X-PROPERTY, which iCalcreator returns as an array like array('X-PROP-NAME', value).
# We only care about the value, though.
$text = $text[1];
}
if ($text === FALSE) {
if ($property_key != 'SUMMARY') {
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment