mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +01:00
* Calendar: fixed in readonly events custom fields were still editable
This commit is contained in:
parent
67436f667c
commit
66219afde9
@ -1133,18 +1133,10 @@ function replace_eTemplate_onsubmit()
|
||||
|
||||
if ($view)
|
||||
{
|
||||
foreach($event as $key => $val)
|
||||
{
|
||||
if ($key != 'alarm') $readonlys[$key] = true;
|
||||
}
|
||||
// we need to unset the tab itself, as this would make all content (incl. the change-status selects) readonly
|
||||
unset($readonlys[$this->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;
|
||||
$readonlys['__ALL__'] = true; // making everything readonly, but widgets set explicitly to false
|
||||
$readonlys['alarm'] = $readonlys['button[cancel]'] = $readonlys['action'] =
|
||||
$readonlys['before_after'] = $readonlys['button[add_alarm]'] = $readonlys['new_alarm[owner]'] =
|
||||
$readonlys['new_alarm[days]'] = $readonlys['new_alarm[hours]'] = $readonlys['new_alarm[mins]'] = false;
|
||||
|
||||
if ($event['recur_type'] != MCAL_RECUR_NONE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user