mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Set show calendar body description according to calendar interval
This commit is contained in:
parent
60e203180c
commit
ea5ec6b787
@ -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'])) : '');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user