Commit 9d84230c authored by Adam Clarey's avatar Adam Clarey Committed by Mingsong Hu

Issue #3129584 by Adam Clarey: Exception due to getTitle()

parent 7cecce8d
......@@ -236,7 +236,7 @@ function template_preprocess_views_view_fullcalendar(array &$variables) {
}
// Event title.
if (empty($options['title']) || $options['title'] == 'title') {
$title = $translated_entity->getTitle();
$title = $translated_entity->label();
}
elseif ($current_entity->hasField($options['title'])) {
$title = $translated_entity->get($options['title'])->value;
......
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