* All apps: fixed not working notification links (not opening given entry) or changing app via url

This commit is contained in:
Ralf Becker 2015-07-13 16:26:24 +00:00
parent 478128d276
commit 4115fd5a43

View File

@ -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
//for or may return an application that simply does not exist. So check first
//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) && strpos( $apps[$active_tab]['url'],'ajax=true') === False)
if ($active_tab && array_key_exists($active_tab, $apps))
{
$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;
}
else