Backport 31140 & 31141 - Allow admins to restore deleted events

This commit is contained in:
Nathan Gray 2010-06-28 11:39:41 +00:00
parent c9c422ad83
commit aa2281b554
2 changed files with 10 additions and 0 deletions

View File

@ -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);

View File

@ -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