forked from extern/egroupware
"fix for bug #469: Empty entry when deleting infolog from calendar dayview"
This commit is contained in:
parent
c160fdec74
commit
668640f9a3
@ -469,6 +469,19 @@ class uiinfolog
|
|||||||
return $this->edit($do_id,$action,$action_id,'',$called_as);
|
return $this->edit($do_id,$action,$action_id,'',$called_as);
|
||||||
case 'delete':
|
case 'delete':
|
||||||
if (!($values['msg'] = $this->delete($do_id,$called_as,$called_as ? '' : 'index'))) return;
|
if (!($values['msg'] = $this->delete($do_id,$called_as,$called_as ? '' : 'index'))) return;
|
||||||
|
// did we deleted the entries, whos subentries we are showing?
|
||||||
|
if ($action == 'sp' && $action_id == $do_id)
|
||||||
|
{
|
||||||
|
// redirect to our referer or reset the subentry view
|
||||||
|
if (!$called_as && $own_referer)
|
||||||
|
{
|
||||||
|
$this->tmpl->location($own_referer); // eg. redirect back to calendar
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
unset($action_id); unset($action);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'close':
|
case 'close':
|
||||||
return $this->close($do_id,$called_as,$do == 'close_subs');
|
return $this->close($do_id,$called_as,$do == 'close_subs');
|
||||||
|
Loading…
Reference in New Issue
Block a user