Make single-key radio fields translatable like combo fields (close #6878)

This commit is contained in:
Quincy Morgan
2019-09-24 19:27:50 +02:00
parent 8a6fa241df
commit 1371b3cfdc
8 changed files with 76 additions and 24 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export function uiFieldRadio(field, context) {
var wrap = d3_select(null);
var labels = d3_select(null);
var radios = d3_select(null);
var radioData = (field.options || field.keys).slice(); // shallow copy
var radioData = (field.options || (field.strings && field.strings.options && Object.keys(field.strings.options)) || field.keys).slice(); // shallow copy
var typeField;
var layerField;
var _oldType = {};