mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Don't delete links until purge, same as addressbook
This commit is contained in:
parent
bf83f9597c
commit
db9bbc8460
@ -1221,6 +1221,9 @@ class calendar_boupdate extends calendar_bo
|
||||
if(!$config['calendar_delete_history'] || $event['deleted'])
|
||||
{
|
||||
$this->so->delete($cal_id);
|
||||
|
||||
// delete all links to the event
|
||||
egw_link::unlink(0,'calendar',$cal_id);
|
||||
}
|
||||
elseif ($config['calendar_delete_history'])
|
||||
{
|
||||
@ -1236,9 +1239,6 @@ class calendar_boupdate extends calendar_bo
|
||||
}
|
||||
}
|
||||
$GLOBALS['egw']->contenthistory->updateTimeStamp('calendar',$cal_id,'delete',time());
|
||||
|
||||
// delete all links to the event
|
||||
egw_link::unlink(0,'calendar',$cal_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user