mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +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;
|
||||||
@ -467,4 +471,4 @@ export class Et2SelectYearReadonly extends Et2SelectReadonly
|
|||||||
}
|
}
|
||||||
|
|
||||||
// @ts-ignore TypeScript is not recognizing that this widget is a LitElement
|
// @ts-ignore TypeScript is not recognizing that this widget is a LitElement
|
||||||
customElements.define("et2-select-year_ro", Et2SelectYearReadonly);
|
customElements.define("et2-select-year_ro", Et2SelectYearReadonly);
|
Loading…
Reference in New Issue
Block a user