From 592c13246f350b8d86968084f8037d78224ee32f Mon Sep 17 00:00:00 2001 From: Thomas <71355143+thomas694@users.noreply.github.com> Date: Sat, 4 Dec 2021 18:47:32 +0100 Subject: [PATCH] Fix Error when selecting blog with non-default collection assigned --- src/TumblThree/SharedAssemblyInfo.cs | 4 ++-- .../TumblThree.Applications/Controllers/DetailsController.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TumblThree/SharedAssemblyInfo.cs b/src/TumblThree/SharedAssemblyInfo.cs index 7da433f1..e7f359b4 100644 --- a/src/TumblThree/SharedAssemblyInfo.cs +++ b/src/TumblThree/SharedAssemblyInfo.cs @@ -12,5 +12,5 @@ [assembly: ComVisible(false)] [assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.MainAssembly)] -[assembly: AssemblyVersion("2.4.3.0")] -[assembly: AssemblyFileVersion("2.4.3.0")] +[assembly: AssemblyVersion("2.4.4.0")] +[assembly: AssemblyFileVersion("2.4.4.0")] diff --git a/src/TumblThree/TumblThree.Applications/Controllers/DetailsController.cs b/src/TumblThree/TumblThree.Applications/Controllers/DetailsController.cs index 9ae39e38..1aae146e 100644 --- a/src/TumblThree/TumblThree.Applications/Controllers/DetailsController.cs +++ b/src/TumblThree/TumblThree.Applications/Controllers/DetailsController.cs @@ -137,6 +137,7 @@ public void ViewFullScreenMedia() public bool ChangeCollection(IBlog blog, IList oldItem, IList newItem) { if (oldItem == null || oldItem.Count == 0 || newItem == null || newItem.Count == 0) return false; + if (blog.CollectionId == newItem[0].Id) return false; if (QueueManager.Items.Any(x => x.Blog.Name == blog.Name && x.Blog.OriginalBlogType == blog.OriginalBlogType)) {