This commit is contained in:
Ralf Becker 2012-07-15 08:01:13 +00:00
parent b690d98fc4
commit 74c201c714

View File

@ -773,14 +773,11 @@ class calendar_ui
list($label,$title) = $label; list($label,$title) = $label;
$options .= '<option value="'.$value.'"'.($this->filter == $value ? ' selected="selected"' : '').' title="'.$title.'">'.$label.'</options>'."\n"; $options .= '<option value="'.$value.'"'.($this->filter == $value ? ' selected="selected"' : '').' title="'.$title.'">'.$label.'</options>'."\n";
} }
// add deleted filter, if history logging is activated
// Add in deleted for admins if($GLOBALS['egw_info']['server']['calendar_delete_history'])
$config = config::read('phpgwapi');
if($config['calendar_delete_history'])
{ {
$options .= '<option value="deleted"'.($this->filter == 'deleted' ? ' selected="selected"' : '').' title="'.lang('Show events that have been deleted').'">'.lang('Deleted').'</options>'."\n"; $options .= '<option value="deleted"'.($this->filter == 'deleted' ? ' selected="selected"' : '').' title="'.lang('Show events that have been deleted').'">'.lang('Deleted').'</options>'."\n";
} }
$file[] = $this->_select_box('Filter','filter',$options,$baseurl ? $baseurl.'&filter=' : ''); $file[] = $this->_select_box('Filter','filter',$options,$baseurl ? $baseurl.'&filter=' : '');
// Calendarselection: User or Group // Calendarselection: User or Group