mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 10:23:28 +01:00
Backport 31140 & 31141 - Allow admins to restore deleted events
This commit is contained in:
parent
c9c422ad83
commit
aa2281b554
@ -1445,6 +1445,15 @@ function replace_eTemplate_onsubmit()
|
||||
$etpl->set_cell_attribute('button[cancel]','onclick','');
|
||||
}
|
||||
|
||||
// Allow admins to restore deleted events
|
||||
$config = config::read('phpgwapi');
|
||||
if($config['calendar_delete_history'] && $event['deleted'] && $GLOBALS['egw_info']['user']['apps']['admin'])
|
||||
{
|
||||
$content['deleted'] = $preserv['deleted'] = false;
|
||||
$etpl->set_cell_attribute('button[save]', 'label', 'recover');
|
||||
$etpl->set_cell_attribute('button[apply]', 'disabled', true);
|
||||
}
|
||||
|
||||
// Setup history tab
|
||||
$this->setup_history($content, $sel_options);
|
||||
|
||||
|
@ -313,6 +313,7 @@ re-edit event calendar en Re-Edit event
|
||||
receive email updates calendar en Receive email updates
|
||||
receive notifications about events you created/modified/deleted calendar en Receive notifications about events you created/modified/deleted
|
||||
receive summary of appointments calendar en Receive summary of appointments
|
||||
recover calendar en Recover
|
||||
recurrence calendar en Recurrence
|
||||
recurring event calendar en Recurring event
|
||||
rejected calendar en Rejected
|
||||
|
Loading…
Reference in New Issue
Block a user