diff --git a/app/directives/archetypeproperty.js b/app/directives/archetypeproperty.js index 57cc61f..8a824b3 100644 --- a/app/directives/archetypeproperty.js +++ b/app/directives/archetypeproperty.js @@ -202,6 +202,23 @@ angular.module("umbraco.directives").directive('archetypeProperty', function ($c //set the config from the prevalues scope.model.config = config; + /* + Property Specific Hacks + + Preference is to not do these, but unless we figure out core issues, this is quickest fix. + */ + + //MNTP *single* hack + if(scope.model.config.maxNumber && scope.model.config.multiPicker) + { + if(scope.model.config.maxNumber == "1") + { + scope.model.config.multiPicker = "0"; + } + } + + //console.log(scope.model.config); + //some items need an alias scope.model.alias = "archetype-property-" + propertyAlias;