fixed issue with formatting, by changing order of attributes

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-07-07 13:56:14 +02:00
parent b1fc81b642
commit 6e5dfbf8da
4 changed files with 4 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ namespace Umbraco.Web.BackOffice.Filters
{
public JsonCamelCaseFormatterAttribute() : base(typeof(JsonCamelCaseFormatterFilter))
{
Order = 2; //must be higher than AngularJsonOnlyConfigurationAttribute.Order
}
private class JsonCamelCaseFormatterFilter : IResultFilter

View File

@@ -13,6 +13,7 @@ namespace Umbraco.Web.Common.Filters
{
public AngularJsonOnlyConfigurationAttribute() : base(typeof(AngularJsonOnlyConfigurationFilter))
{
Order = 1; // Must be low, to be overridden by other custom formatters, but higher then all framework stuff.
}
private class AngularJsonOnlyConfigurationFilter : IResultFilter

View File

@@ -17,7 +17,7 @@ namespace Umbraco.Web.Common.Filters
{
public JsonDateTimeFormatAttribute() : base(typeof(JsonDateTimeFormatFilter))
{
Order = -2000;
Order = 2; //must be higher than AngularJsonOnlyConfigurationAttribute.Order
}
private class JsonDateTimeFormatFilter : IResultFilter

View File

@@ -16,7 +16,7 @@ namespace Umbraco.Web.Common.Filters
{
public OutgoingNoHyphenGuidFormatAttribute() : base(typeof(OutgoingNoHyphenGuidFormatFilter))
{
Order = -2000;
Order = 2; //must be higher than AngularJsonOnlyConfigurationAttribute.Order
}
private class OutgoingNoHyphenGuidFormatFilter : IResultFilter