Fix refresh calendar list after deleting recurrent events

This commit is contained in:
Hadi Nategh 2014-06-17 07:48:59 +00:00
parent a7f6692b70
commit cc594119b9

View File

@ -987,7 +987,14 @@ class calendar_uiforms extends calendar_ui
'msg' => $msg,
));
}
egw_framework::refresh_opener($msg, 'calendar', $content['id'], $button == 'save'?'update': 'delete');
if (in_array($button,array('delete_exceptions','delete_keep_exceptions')) || ($content['recur_type'] && $button['delete']))
{
egw_framework::refresh_opener($msg,'calendar');
}
else
{
egw_framework::refresh_opener($msg, 'calendar', $content['id'], $button == 'save'?'update': 'delete');
}
egw_framework::window_close();
common::egw_exit();
}