From c5eced8a446c6c426cf22d63ac34ebc87459d946 Mon Sep 17 00:00:00 2001 From: Tom Fulton Date: Wed, 12 Mar 2014 18:03:18 -0600 Subject: [PATCH] Tighten up validation checks, add back missing code Fixes #79 by using === Fix for null values --- app/directives/archetypeproperty.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/directives/archetypeproperty.js b/app/directives/archetypeproperty.js index 5102a83..5286fca 100644 --- a/app/directives/archetypeproperty.js +++ b/app/directives/archetypeproperty.js @@ -101,7 +101,7 @@ angular.module("umbraco.directives").directive('archetypeProperty', function ($c property.isValid = true; var propertyConfig = getPropertyByAlias(configFieldsetModel, property.alias); - if(propertyConfig && propertyConfig.required && property.value == ""){ + if(propertyConfig && propertyConfig.required && (property.value == null || property.value === "")){ fieldset.isValid = false; property.isValid = false; valid = false;