mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
always show deleted filter and set deleted status in calendar
see #29778
This commit is contained in:
parent
71ceb25157
commit
90f1d9ea37
@ -323,18 +323,14 @@ class Storage
|
||||
)));
|
||||
}
|
||||
|
||||
// Add in deleted type, if holding deleted contacts
|
||||
$config = Api\Config::read('phpgwapi');
|
||||
if($config['history'])
|
||||
{
|
||||
$this->content_types[self::DELETED_TYPE] = array(
|
||||
'name' => lang('Deleted'),
|
||||
'options' => array(
|
||||
'template' => 'addressbook.edit',
|
||||
'icon' => 'deleted.png'
|
||||
)
|
||||
);
|
||||
}
|
||||
// Always add in deleted type, to show deleted contacts
|
||||
$this->content_types[self::DELETED_TYPE] = array(
|
||||
'name' => lang('Deleted'),
|
||||
'options' => array(
|
||||
'template' => 'addressbook.edit',
|
||||
'icon' => 'deleted.png'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1913,7 +1913,7 @@ class calendar_boupdate extends calendar_bo
|
||||
// delete all links to the event
|
||||
Link::unlink(0,'calendar',$cal_id);
|
||||
}
|
||||
elseif ($config['calendar_delete_history'])
|
||||
else
|
||||
{
|
||||
// mark all links to the event as deleted, but keep them
|
||||
Link::unlink(0,'calendar',$cal_id,'','','',true);
|
||||
|
@ -1960,6 +1960,9 @@ class infolog_bo
|
||||
$labels = implode(', ', $labels);
|
||||
}
|
||||
}
|
||||
// always add deleted status
|
||||
$statis['deleted'] = 'deleted';
|
||||
|
||||
return $statis;
|
||||
}
|
||||
|
||||
|
@ -532,10 +532,6 @@ class infolog_ui
|
||||
// if filtered by type, show only the stati of the filtered type
|
||||
$rows['sel_options']['info_status'] = $this->bo->get_status($query['col_filter']['info_type']);
|
||||
|
||||
if ($this->bo->history)
|
||||
{
|
||||
$rows['sel_options']['info_status']['deleted'] = 'deleted';
|
||||
}
|
||||
// Update actions for selected type / status / etc.
|
||||
$query['actions'] = $this->get_actions($query);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user