From e1fa7a327194a463b414e862f4f9f0b11eb85c3c Mon Sep 17 00:00:00 2001 From: Nicholas-Westby Date: Sat, 7 May 2016 15:48:39 -0700 Subject: [PATCH] Fixed recursion error and tidied up validation logic. --- app/controllers/controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/controller.js b/app/controllers/controller.js index 50dc297..552918d 100644 --- a/app/controllers/controller.js +++ b/app/controllers/controller.js @@ -120,8 +120,8 @@ angular.module("umbraco").controller("Imulus.ArchetypeController", function ($sc ]; _.each(fieldsetGroups, function(fieldsets) { recurseProperties(function(property, fieldset) { - //TODO: Find a better way to make everything valid. - archetypeService.propertyValueChanged(fieldset, property); + property.isValid = true; + fieldset.isValid = true; }, fieldsets); }); @@ -806,7 +806,7 @@ angular.module("umbraco").controller("Imulus.ArchetypeController", function ($sc fn(fieldset); _.each(fieldset.properties, function (property) { if (property != null && property.value != null && property.propertyEditorAlias === "Imulus.Archetype") { - recurseFieldsets(property.value.fieldsets); + recurseFieldsets(fn, property.value.fieldsets); } }); });