mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-29 14:21:39 +02: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);
|
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!
|
// If we are in a json request, we should not flush the current output!
|
||||||
$do_flush = false;
|
$do_flush = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user