From dbdb124c1c97f096499c215b4defd56ecfcae4e1 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 27 Jul 2022 11:46:45 +0200 Subject: [PATCH] fix not displayed selected account, caused by egw.accounts() returning value as number, not string --- api/js/etemplate/Et2Select/Et2SelectAccount.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/js/etemplate/Et2Select/Et2SelectAccount.ts b/api/js/etemplate/Et2Select/Et2SelectAccount.ts index 1e92e8f2fe..3d752450ca 100644 --- a/api/js/etemplate/Et2Select/Et2SelectAccount.ts +++ b/api/js/etemplate/Et2Select/Et2SelectAccount.ts @@ -74,6 +74,10 @@ export class Et2SelectAccount extends Et2Select { select_options = this.egw().accounts(this.accountType); } + // egw.accounts returns value as number, causing the et2-select to not match the option + select_options.forEach(option => { + option.value = option.value.toString(); + }); return select_options; }