Do not show event description if there's no fix time-grid

- Fix event with long description occupies too much space of a column
This commit is contained in:
Hadi Nategh 2015-10-09 07:25:55 +00:00
parent 4e3732f526
commit 4b96ba9016

View File

@ -1798,7 +1798,7 @@ class calendar_uiviews extends calendar_ui
*/
// 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']) > ($this->cal_prefs['interval'] * 3 * 60))
if ($event['whole_day'] || ($event['end'] - $event['start']) > ($this->cal_prefs['interval'] * 3 * 60) && $this->use_time_grid)
{
$tpl->set_var('bodydescription', !$is_private ? nl2br(html::htmlspecialchars($event['description'])) : '');
}