mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +01:00
Fix infinite reload in preference dialog when switching to common preferences
This commit is contained in:
parent
c9eaeb51ea
commit
b43dd8f2c3
@ -169,6 +169,11 @@ class preferences_settings
|
|||||||
|
|
||||||
$sel_options = $readonlys = null;
|
$sel_options = $readonlys = null;
|
||||||
$data = $this->get_content($appname, $type, $sel_options, $readonlys, $preserve['types'], $tpl);
|
$data = $this->get_content($appname, $type, $sel_options, $readonlys, $preserve['types'], $tpl);
|
||||||
|
if($data['appname'] == 'common')
|
||||||
|
{
|
||||||
|
// 'common' is not in the options list, we use the empty label for common
|
||||||
|
$data['appname'] = '';
|
||||||
|
}
|
||||||
$preserve['appname'] = $preserve['old_appname'] = $data['appname'];
|
$preserve['appname'] = $preserve['old_appname'] = $data['appname'];
|
||||||
$preserve['type'] = $preserve['old_type'] = $data['type'];
|
$preserve['type'] = $preserve['old_type'] = $data['type'];
|
||||||
$preserve['is_admin'] = $is_admin;
|
$preserve['is_admin'] = $is_admin;
|
||||||
|
Loading…
Reference in New Issue
Block a user