mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
Api: Swap sparse account array/object for simple list to fix missing options in select account widget
This commit is contained in:
parent
bf04a60fe3
commit
9c15cdb1a5
@ -132,11 +132,11 @@ egw.extend('user', egw.MODULE_GLOBAL, function()
|
||||
let result = [];
|
||||
if (type === 'both')
|
||||
{
|
||||
result = [].concat(accountStore.accounts, accountStore.groups);
|
||||
result = [...Object.values(accountStore.accounts), ...Object.values(accountStore.groups)];
|
||||
}
|
||||
else
|
||||
{
|
||||
result = [].concat(accountStore[type]);
|
||||
result = [...Object.values(accountStore[type])];
|
||||
}
|
||||
return Promise.resolve(result);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user