mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix preferences tabs getting duplicated, introduced by commit 2707b1da0b
This commit is contained in:
parent
da58ef5769
commit
0a8e209a31
@ -184,10 +184,12 @@ class preferences_settings
|
|||||||
*/
|
*/
|
||||||
function process_array(array &$repository, array $values, array $types, $appname, $type, $only_verify=false)
|
function process_array(array &$repository, array $values, array $types, $appname, $type, $only_verify=false)
|
||||||
{
|
{
|
||||||
if (!$this->call_hook($appname, $type, $GLOBALS['egw']->preferences->get_account_id()))
|
//fetch application specific settings from a hook
|
||||||
{
|
$settings = Api\Hooks::single(array(
|
||||||
throw new Api\Exception\WrongParameter("Could not find settings for application: ".$appname);
|
'account_id'=>$GLOBALS['egw']->preferences->get_account_id(),
|
||||||
}
|
'location'=>'settings',
|
||||||
|
'type' => $type), $appname);
|
||||||
|
|
||||||
//_debug_array($repository);
|
//_debug_array($repository);
|
||||||
$prefs = &$repository[$appname];
|
$prefs = &$repository[$appname];
|
||||||
|
|
||||||
@ -247,7 +249,7 @@ class preferences_settings
|
|||||||
|
|
||||||
if (isset($value) && $value !== '' && $value !== '**NULL**' && $value !== array())
|
if (isset($value) && $value !== '' && $value !== '**NULL**' && $value !== array())
|
||||||
{
|
{
|
||||||
if (is_array($value) && !$this->settings[$var]['no_sel_options']) $value = implode(',',$value); // multiselect
|
if (is_array($value) && !$settings[$var]['no_sel_options']) $value = implode(',',$value); // multiselect
|
||||||
|
|
||||||
$prefs[$var] = $value;
|
$prefs[$var] = $value;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user