mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +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