forked from extern/egroupware
* Calendar/Addressbook/InfoLog: no longer allow to immediate delete entries as it breaks CalDAV/CardDAV sync
always show deleted filter and set deleted status in calendar see #29778
This commit is contained in:
parent
d8bb858efc
commit
4152c957fa
@ -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'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1906,7 +1906,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