Handle 7.2.6 issue

This commit is contained in:
kgiszewski
2015-07-01 09:25:18 -04:00
parent 662cf4c3bf
commit d62fa05ab5
+7
View File
@@ -144,6 +144,13 @@ angular.module("umbraco.directives").directive('archetypeProperty', function ($c
}
}
//upload datatype hack
if(view.indexOf('fileupload.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;
//some items also need an id (file upload for example)