mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
* All apps: fixed not working notification links (not opening given entry) or changing app via url
This commit is contained in:
parent
478128d276
commit
4115fd5a43
@ -950,10 +950,14 @@ div .egw_fw_ui_sidemenu_entry_content > div {
|
|||||||
//self::app_from_url might return an application the user has no rights
|
//self::app_from_url might return an application the user has no rights
|
||||||
//for or may return an application that simply does not exist. So check first
|
//for or may return an application that simply does not exist. So check first
|
||||||
//whether the $active_tab really exists in the $apps array.
|
//whether the $active_tab really exists in the $apps array.
|
||||||
// Do not remove cd=yes if it's an ajax=true app
|
if ($active_tab && array_key_exists($active_tab, $apps))
|
||||||
if ($active_tab && array_key_exists($active_tab, $apps) && strpos( $apps[$active_tab]['url'],'ajax=true') === False)
|
|
||||||
{
|
{
|
||||||
$apps[$active_tab]['openOnce'] = preg_replace('/[&?]cd=yes/','',$url);
|
// Do not remove cd=yes if it's an ajax=true app
|
||||||
|
if (strpos( $apps[$active_tab]['url'],'ajax=true') !== False)
|
||||||
|
{
|
||||||
|
$url = preg_replace('/[&?]cd=yes/','',$url);
|
||||||
|
}
|
||||||
|
$apps[$active_tab]['openOnce'] = $url;
|
||||||
$store_prefs = true;
|
$store_prefs = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user