Create more unique id for radiobutton list when using splitview and where two properties on each culture has same alias

This commit is contained in:
Bjarne Fyrstenborg
2020-09-01 23:06:22 +02:00
committed by Sebastiaan Janssen
parent a542bd4bd2
commit 124415e413
2 changed files with 4 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ angular.module("umbraco").controller("Umbraco.PropertyEditors.RadioButtonsContro
function init() {
vm.uniqueId = String.CreateGuid();
//we can't really do anything if the config isn't an object
if (Utilities.isObject($scope.model.config.items)) {

View File

@@ -3,7 +3,7 @@
<ul class="unstyled">
<li ng-repeat="item in vm.viewItems track by item.key">
<umb-radiobutton name="{{model.alias}}"
<umb-radiobutton name="{{model.alias}}_{{vm.uniqueId}}"
value="{{item.value}}"
model="model.value"
text="{{item.value}}"
@@ -12,7 +12,7 @@
</li>
</ul>
<div ng-messages="radioButtonsFieldForm[model.alias].$error" show-validation-on-submit>
<div ng-messages="radioButtonsFieldForm[model.alias_vm.uniqueId].$error" show-validation-on-submit>
<p class="help-inline" ng-message="required">{{mandatoryMessage}}</p>
</div>