Skip to content
Snippets Groups Projects
Commit e7f28738 authored by Karen Stevenson's avatar Karen Stevenson
Browse files

#122568 for multi-day fields make sure $node->teaser doesn't keep adding the...

#122568 for multi-day fields make sure $node->teaser doesn't keep adding the same fields, patch by Jürgen Depicker and bcswebstudio
parent 0f4af3b6
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ function theme_calendar_calendar_node($node, $type) {
if ($node->label && !strstr($node->title, $node->label)) {
$node->title .= ' ('. $node->label .')';
}
if ($node->fields) {
if (isset($node->fields) && !isset($node->teaser)) {
foreach ($node->fields as $field) {
$node->teaser .= '<div>'. $field .'</div>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment