Fixes - temp8-40120 tags-validation-bug

This commit is contained in:
Robert
2019-01-09 11:29:42 +01:00
parent 6e8b00d85c
commit a809e35e5d

View File

@@ -189,7 +189,7 @@
*/
function validateMandatory() {
return {
isValid: !vm.validation.mandatory || (vm.viewModel != null && vm.viewModel.length > 0),
isValid: !vm.validation.mandatory || (vm.viewModel != null && vm.viewModel.length > 0) || (vm.value != null && vm.value.length > 0),
errorMsg: "Value cannot be empty",
errorKey: "required"
};