* Calendar: fixed in readonly events custom fields were still editable

This commit is contained in:
Ralf Becker 2011-08-01 15:57:23 +00:00
parent 6d8c35496a
commit b11767f450

View File

@ -1411,18 +1411,10 @@ function replace_eTemplate_onsubmit()
if ($view) if ($view)
{ {
foreach($event as $key => $val) $readonlys['__ALL__'] = true; // making everything readonly, but widgets set explicitly to false
{ $readonlys['alarm'] = $readonlys['button[cancel]'] = $readonlys['action'] =
if ($key != 'alarm') $readonlys[$key] = true; $readonlys['before_after'] = $readonlys['button[add_alarm]'] = $readonlys['new_alarm[owner]'] =
} $readonlys['new_alarm[days]'] = $readonlys['new_alarm[hours]'] = $readonlys['new_alarm[mins]'] = false;
// we need to unset the tab itself, as this would make all content (incl. the change-status selects) readonly
unset($readonlys['tabs']);
// participants are handled individual
unset($readonlys['participants']);
$readonlys['button[save]'] = $readonlys['button[apply]'] = $readonlys['freetime'] = true;
$readonlys['link_to'] = $readonlys['customfields'] = true;
$readonlys['duration'] = true;
$content['participants']['no_add'] = true; $content['participants']['no_add'] = true;