Fallback to value in case no label exists
This commit is contained in:
committed by
Emma L Garland
parent
bfdd71944a
commit
2ea4b5793d
@@ -18,7 +18,7 @@ angular.module("umbraco").controller("Umbraco.PrevalueEditors.CheckboxListContro
|
||||
|
||||
if (Utilities.isObject(prevalues[i])) {
|
||||
item.value = prevalues[i].value;
|
||||
item.label = prevalues[i].label;
|
||||
item.label = prevalues[i].label || prevalues[i].value;
|
||||
}
|
||||
else {
|
||||
item.value = prevalues[i];
|
||||
|
||||
@@ -17,7 +17,7 @@ angular.module("umbraco").controller("Umbraco.PrevalueEditors.RadiobuttonListCon
|
||||
|
||||
if (Utilities.isObject(prevalues[i])) {
|
||||
item.value = prevalues[i].value;
|
||||
item.label = prevalues[i].label;
|
||||
item.label = prevalues[i].label || prevalues[i].value;
|
||||
}
|
||||
else {
|
||||
item.value = prevalues[i];
|
||||
|
||||
Reference in New Issue
Block a user