diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index 7e2f23d1c3..b40e202ec5 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -1809,9 +1809,9 @@ class calendar_uiviews extends calendar_ui (isset($data['border']) ? '&border='.urlencode($data['border']) : '')); } */ - // Add event description to cal event view body if the event is long enough (3 hours or whole day event) + // Add event description to cal event view body if the event is long enough (ATM 3 times longer than interval) // to be able to show some lines of description text - if ($event['whole_day'] || ($event['end'] - $event['start']) >= 10800) + if ($event['whole_day'] || ($event['end'] - $event['start']) > ($this->cal_prefs['interval'] * 3 * 60)) { $tpl->set_var('bodydescription', !$is_private ? nl2br(html::htmlspecialchars($event['description'])) : ''); }