From 6ef78c9591c05795263f34f02a4e74640b6de7d5 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 25 Jan 2023 09:46:22 +0100 Subject: [PATCH] Revert "Fix missing translation on read-only select" Causes: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase') at Object.lang (egw_lang.js:73:16) at Et2SelectAccountReadonly._readonlyRender (Et2SelectReadonly.ts:189:59) at Et2SelectAccountReadonly.render (Et2SelectReadonly.ts:168:16) at Et2SelectAccountReadonly.update (lit-element.js:6:304) at Et2SelectAccountReadonly.performUpdate (reactive-element.js:6:4849) at Et2SelectAccountReadonly.scheduleUpdate (reactive-element.js:6:4496) at Et2SelectAccountReadonly._$Ej (reactive-element.js:6:4404) This reverts commit 4e5f68f97c916c0ffd5e01412763ca985c60d9dd. --- api/js/etemplate/Et2Select/Et2SelectReadonly.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Select/Et2SelectReadonly.ts b/api/js/etemplate/Et2Select/Et2SelectReadonly.ts index 698ee912ae..5792dde514 100644 --- a/api/js/etemplate/Et2Select/Et2SelectReadonly.ts +++ b/api/js/etemplate/Et2Select/Et2SelectReadonly.ts @@ -186,7 +186,7 @@ li { _readonlyRender(option : SelectOption) : TemplateResult { return html` -
  • ${this.noLang ? option.label : this.egw().lang(option.label)}
  • +
  • ${option.label}
  • `; }