fixed issue with formatting, by changing order of attributes
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user