diff --git a/api/js/etemplate/Et2Select/Et2SelectReadonly.ts b/api/js/etemplate/Et2Select/Et2SelectReadonly.ts index 38350a20d8..407c564043 100644 --- a/api/js/etemplate/Et2Select/Et2SelectReadonly.ts +++ b/api/js/etemplate/Et2Select/Et2SelectReadonly.ts @@ -199,7 +199,11 @@ export class Et2SelectAccountReadonly extends Et2SelectReadonly super.value = new_value; return; } - + // fix scalar (number or string) values + if (typeof new_value !== 'object') + { + new_value = [new_value]; + } for(let id of new_value) { 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 -customElements.define("et2-select-year_ro", Et2SelectYearReadonly); +customElements.define("et2-select-year_ro", Et2SelectYearReadonly); \ No newline at end of file