fix collection content getting lost

This commit is contained in:
Luke Pulverenti 2016-01-27 13:08:35 -05:00
parent 361dedc314
commit c401761f91

View File

@ -47,11 +47,7 @@ namespace MediaBrowser.Providers.BoxSets
if (mergeMetadataSettings) if (mergeMetadataSettings)
{ {
var list = sourceItem.LinkedChildren.Where(i => i.Type != LinkedChildType.Manual).ToList(); targetItem.LinkedChildren = sourceItem.LinkedChildren;
list.AddRange(targetItem.LinkedChildren.Where(i => i.Type == LinkedChildType.Manual));
targetItem.LinkedChildren = list;
targetItem.Shares = sourceItem.Shares; targetItem.Shares = sourceItem.Shares;
} }
} }