Fallback to value in case no label exists

This commit is contained in:
Bjarne Fyrstenborg
2022-09-28 22:50:05 +02:00
committed by Emma L Garland
parent bfdd71944a
commit 2ea4b5793d
2 changed files with 2 additions and 2 deletions

View File

@@ -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];

View File

@@ -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];