From 6da116acb39fcb5d36079d01e53ed65d5cd6c97a Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 22 Jul 2025 18:00:50 +0200 Subject: [PATCH] Fix Merge of Chapters --- API/Tranga.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/API/Tranga.cs b/API/Tranga.cs index ede9bf1..fa34cc4 100644 --- a/API/Tranga.cs +++ b/API/Tranga.cs @@ -205,6 +205,10 @@ public static class Tranga MangaConnectorId chId = context.MangaConnectorToChapter.Find(addChId.Key) ?? addChId; chId.Obj = chapter; + foreach (CollectionEntry collectionEntry in context.Entry(chapter).Collections) + collectionEntry.Load(); + context.Entry(chapter).Navigation(nameof(Chapter.ParentManga)).Load(); + if(context.MangaConnectorToChapter.Find(chId.Key) is null) context.MangaConnectorToChapter.Add(chId);