mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 16:38:39 +01:00
fix TypeError with numbers not iterable
also problem with strings - thought no error - as they are iterated letter-wise, which is not what we want here
This commit is contained in:
parent
ddaa16dcd5
commit
f29da5e613
@ -199,7 +199,11 @@ export class Et2SelectAccountReadonly extends Et2SelectReadonly
|
|||||||
super.value = new_value;
|
super.value = new_value;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// fix scalar (number or string) values
|
||||||
|
if (typeof new_value !== 'object')
|
||||||
|
{
|
||||||
|
new_value = [new_value];
|
||||||
|
}
|
||||||
for(let id of new_value)
|
for(let id of new_value)
|
||||||
{
|
{
|
||||||
let account_name = null;
|
let account_name = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user