mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
allow to use Framework::message together with Framework::redirect, eg. to show success message and redirect to index page
This commit is contained in:
parent
9a57fbaedd
commit
112ed53f47
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user