Skip to content
Snippets Groups Projects
Commit 10b82fc7 authored by Mathias Chouet's avatar Mathias Chouet
Browse files

Fix #400 - error message in Select fields when a translation is missing

parent ff93f15c
No related branches found
No related tags found
No related merge requests found
Pipeline #137924 passed
......@@ -126,9 +126,7 @@ export class SelectField extends Field {
public updateLocalisation(loc: StringMap) {
super.updateLocalisation(loc);
for (const e of this._entries) {
if (loc[e.id] !== undefined) {
e.label = loc[e.id];
}
e.label = ServiceFactory.instance.i18nService.localizeText(e.id, loc);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment