allow to use Framework::message together with Framework::redirect, eg. to show success message and redirect to index page

This commit is contained in:
Ralf Becker 2016-04-21 15:25:04 +00:00
parent 9a57fbaedd
commit 112ed53f47

View File

@ -193,6 +193,13 @@ abstract class Framework extends Framework\Extra
{
Json\Response::get()->redirect($url, false, $link_app);
// check if we have a message, in which case send it along too
$extra = self::get_extra();
if ($extra['message'])
{
Json\Response::get()->apply('egw.message', $extra['message']);
}
// If we are in a json request, we should not flush the current output!
$do_flush = false;
}