forked from extern/egroupware
fix TypeError this === undefined
This commit is contained in:
parent
fdd6f23560
commit
7dc591b2c9
@ -235,7 +235,7 @@ export const Et2widgetWithSelectMixin = <T extends Constructor<LitElement>>(supe
|
|||||||
new_options.push({
|
new_options.push({
|
||||||
value: et2_readAttrWithDefault(options[i], "value", options[i].textContent),
|
value: et2_readAttrWithDefault(options[i], "value", options[i].textContent),
|
||||||
// allow options to contain multiple translated sub-strings eg: {Firstname}.{Lastname}
|
// allow options to contain multiple translated sub-strings eg: {Firstname}.{Lastname}
|
||||||
label: options[i].textContent.replace(/{([^}]+)}/g, function(str, p1)
|
label: options[i].textContent.replace(/{([^}]+)}/g, (str, p1) =>
|
||||||
{
|
{
|
||||||
return this.egw().lang(p1);
|
return this.egw().lang(p1);
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user