From ecc6fcfbab7006c7c9bfcf76d329c663a2fa5a2c Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 3 Jan 2014 15:32:27 -0500 Subject: add custom collection sort orders to edit page --- MediaBrowser.Server.Implementations/Dto/DtoService.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'MediaBrowser.Server.Implementations') diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs index 932c7ba3f..4f97a6506 100644 --- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs +++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs @@ -764,6 +764,12 @@ namespace MediaBrowser.Server.Implementations.Dto dto.LocalTrailerCount = hasTrailers.LocalTrailerIds.Count; } + var hasDisplayOrder = item as IHasDisplayOrder; + if (hasDisplayOrder != null) + { + dto.DisplayOrder = hasDisplayOrder.DisplayOrder; + } + if (fields.Contains(ItemFields.RemoteTrailers)) { dto.RemoteTrailers = hasTrailers != null ? -- cgit v1.2.3