diff --git a/src/Umbraco.Core/PropertyEditors/LegacyParameterEditorAliasConverter.cs b/src/Umbraco.Core/PropertyEditors/LegacyParameterEditorAliasConverter.cs index be9c4880ce..60ef70e4b8 100644 --- a/src/Umbraco.Core/PropertyEditors/LegacyParameterEditorAliasConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/LegacyParameterEditorAliasConverter.cs @@ -94,6 +94,12 @@ namespace Umbraco.Core.PropertyEditors CreateMap("textMultiLine", Constants.PropertyEditors.TextboxMultipleAlias); CreateMap("text", Constants.PropertyEditors.TextboxAlias); CreateMap("bool", Constants.PropertyEditors.TrueFalseAlias); + + CreateMap("mediaCurrent", Constants.PropertyEditors.MediaPickerAlias); + + CreateMap("number", Constants.PropertyEditors.IntegerAlias); + + } } diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/fixnumber.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/fixnumber.directive.js index 8ea0b31b31..c177a60ec3 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/fixnumber.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/fixnumber.directive.js @@ -31,6 +31,13 @@ function fixNumber() { } } + ngModel.$formatters.push(function (value) { + if (angular.isString(value)) { + return parseFloat(value); + } + return value; + }); + //This fixes this angular issue: //https://github.com/angular/angular.js/issues/2144 // which doesn't actually validate the number input properly since the model only changes when a real number is entered diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.html b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.html index 41d4cd17c7..be129bf859 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.html +++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/insertmacro.html @@ -29,9 +29,11 @@