Fix for issue #258, same issue as fileupload datatype, need to add empty validation property

This commit is contained in:
Martin Abrahams
2015-12-10 16:03:14 +11:00
parent bb056a01dd
commit 7df4d4cfcd
+7
View File
@@ -99,6 +99,13 @@ angular.module("umbraco.directives").directive('archetypeProperty', function ($c
scope.model.validation = {};
scope.model.validation.mandatory = 0;
}
//colorpicker datatype hack
if (view.indexOf('colorpicker.html') != -1) {
scope.propertyForm = scope.form;
scope.model.validation = {};
scope.model.validation.mandatory = 0;
}
//some items need an alias
scope.model.alias = "archetype-property-" + propertyAlias;