forked from extern/egroupware
preserv open tab, if appname is not chanaged
This commit is contained in:
parent
07ab26dd1b
commit
15ad58522f
@ -106,7 +106,12 @@ class preferences_settings
|
||||
$GLOBALS['egw']->preferences->read_repository();
|
||||
}
|
||||
$preserve = array('types' => array());
|
||||
if ($content['old_appname'] == $content['appname']) $old_tab = $content['tabs'];
|
||||
// preserv open tab, if appname is not chanaged
|
||||
if (!isset($content['old_appname']) || $content['old_appname'] == $content['appname'] ||
|
||||
$content['old_appname'] == 'common' && !$content['appname'])
|
||||
{
|
||||
$old_tab = $content['tabs'];
|
||||
}
|
||||
$content = $this->get_content($appname, $type, $sel_options, $readonlys, $preserve['types'], $tpl);
|
||||
$preserve['appname'] = $preserve['old_appname'] = $content['appname'];
|
||||
$preserve['type'] = $preserve['old_type'] = $content['type'];
|
||||
|
Loading…
Reference in New Issue
Block a user