From d62fa05ab5578618b5bc3777d0ea9de1e0c4b770 Mon Sep 17 00:00:00 2001 From: kgiszewski Date: Wed, 1 Jul 2015 09:25:18 -0400 Subject: [PATCH] Handle 7.2.6 issue --- app/directives/archetypeproperty.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/directives/archetypeproperty.js b/app/directives/archetypeproperty.js index e530591..eb7fb11 100644 --- a/app/directives/archetypeproperty.js +++ b/app/directives/archetypeproperty.js @@ -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)