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:46:03 +00:00
parent 60919a6dc1
commit 89f3990edb

View File

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