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:
committed by
Sebastiaan Janssen
parent
a542bd4bd2
commit
124415e413
@@ -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)) {
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user