Et2SelectAccount improvements

- Fix always including all accounts
- Limit included accounts to 100 to avoid breaking
- Let repeat() cache
- Improved "more results" count
- Reduce repeats & iteration needed
This commit is contained in:
nathan
2023-10-06 11:37:11 -06:00
parent 58d486e6ba
commit 235ff7a2cf
5 changed files with 32 additions and 14 deletions

View File

@ -117,7 +117,7 @@ egw.extend('user', egw.MODULE_GLOBAL, function()
{
if (typeof data[t] === "object")
{
accountStore[t] = jQuery.extend(true, [], data[t] || []);
accountStore[t] = (Array.isArray(data[t]) ? data[t]:Object.values(data[t]) ?? []).map(a => {a.value = ""+a.value; return a});
}
}
}