forked from extern/egroupware
Maybe not the proper fix, but lets user prefs be set
This commit is contained in:
parent
8b36069bbf
commit
5a1336c357
@ -16,7 +16,7 @@
|
||||
{
|
||||
$file['Change your Password'] = $GLOBALS['phpgw']->link('/preferences/changepassword.php');
|
||||
}
|
||||
$file['change your settings'] = $GLOBALS['phpgw']->link('/preferences/preferences.php','appname=preferences');
|
||||
$file['change your settings'] = $GLOBALS['phpgw']->link('/preferences/preferences.php','appname=preferences&type=user');
|
||||
|
||||
display_section('Preferences','Preferences',$file);
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
$user = get_var('user',Array('POST'));
|
||||
$global = get_var('global',Array('POST'));
|
||||
$default = get_var('default',Array('POST'));
|
||||
|
||||
$GLOBALS['appname'] = get_var('appname',Array('GET'));
|
||||
|
||||
if(get_var('cancel',Array('POST')))
|
||||
@ -208,7 +209,7 @@
|
||||
$GLOBALS['phpgw']->session->appsession('session_data','preferences',$session_data);
|
||||
}
|
||||
|
||||
$type = get_var('type',Array('GET'));
|
||||
$type = get_var('type',Array('GET','POST'));
|
||||
if (!isset($type))
|
||||
{
|
||||
$GLOBALS['type'] = $session_data['type'];
|
||||
@ -258,7 +259,7 @@
|
||||
if (get_var('submit',Array('POST')))
|
||||
{
|
||||
/* Don't use a switch here, we need to check some permissions durring the ifs */
|
||||
if ($GLOBALS['type'] == 'user')
|
||||
if ($GLOBALS['type'] == 'user' || !($GLOBALS['type']))
|
||||
{
|
||||
process_array($p, $user);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user