diff --git a/PROMS/DataLoader/Sections.cs b/PROMS/DataLoader/Sections.cs index 9bfae069..c946007a 100644 --- a/PROMS/DataLoader/Sections.cs +++ b/PROMS/DataLoader/Sections.cs @@ -612,7 +612,21 @@ namespace DataLoader if (cont != null) { // ContentsParts.Add can use 'fromtype', item - fromtype here = 2, section - cont.ContentParts.Add(2, secitem); + if (cont.ContentParts.Contains(2)) + { + foreach (ContentPart part in cont.ContentParts) + { + if (part.FromType == 2) + { + Item ii = Item.Get(part.ItemID); + ii.MyContent.ContentParts.Add(2, secitem); + ii.Save(); + break; + } + } + } + else + cont.ContentParts.Add(2, secitem); if (cont.MyZContent.OldStepSequence == null || cont.MyZContent.OldStepSequence == "") cont.MyZContent.OldStepSequence = ProcNumber; if (!cont.IsSavable) ErrorRpt.ErrorReport(cont); cont.Save();