Bug fixes for:

- #75
This commit is contained in:
Kevin Giszewski
2014-03-12 08:12:22 -04:00
parent 1dde1ed5f0
commit fa54294d74
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -77,6 +77,10 @@
if ($scope.canRemove()) {
if (confirm('Are you sure you want to remove this?')) {
$scope.archetypeRenderModel.fieldsets[$index].remove = true;
/*
Touches the model. Not sure why this is needed but without it the Digest doesn't run on a remove row.
*/
$scope.archetypeRenderModel = JSON.parse(JSON.stringify($scope.archetypeRenderModel));
}
}
}
+1 -1
View File
@@ -99,7 +99,7 @@ angular.module("umbraco.directives").directive('archetypeProperty', function ($c
var propertyConfig = getPropertyByAlias(configFieldsetModel, property.alias);
if(propertyConfig && propertyConfig.required && property.value == ""){
if(propertyConfig && !fieldset.remove && propertyConfig.required && !property.value){
fieldset.isValid = false;
property.isValid = false;
valid = false;