"fix for bug #469: Empty entry when deleting infolog from calendar dayview"

This commit is contained in:
Ralf Becker 2007-04-26 12:03:44 +00:00
parent c160fdec74
commit 668640f9a3

View File

@ -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');