Fix Merge of Chapters

This commit is contained in:
2025-07-22 18:00:50 +02:00
parent 34b7d0c2a3
commit 6da116acb3

View File

@@ -205,6 +205,10 @@ public static class Tranga
MangaConnectorId<Chapter> 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);