Hide whole day label when read-only and the event is not whole day

This commit is contained in:
Nathan Gray 2015-07-22 14:44:19 +00:00
parent d5cceaf7d6
commit 5bac30f8c7

View File

@ -1585,6 +1585,11 @@ class calendar_uiforms extends calendar_ui
$content['participants']['no_add'] = true;
if(!$event['whole_day'])
{
$etpl->setElementAttribute('whole_day', 'disabled', true);
}
// respect category permissions
if(!empty($event['category']))
{