B2017-081: crash on insert of supplemental information. Cached item was of wrong type. Removed lines of code using this – it was not needed

This commit is contained in:
Kathy Ruffing 2017-05-08 15:55:42 +00:00
parent 3b03233003
commit d8f00ec197

View File

@ -356,7 +356,6 @@ namespace VEPROMS.CSLA.Library
tmp.UpdateROText(); tmp.UpdateROText();
OnNewSiblingBefore(new ItemInfoInsertEventArgs(tmp, EAddpingPart.Before)); OnNewSiblingBefore(new ItemInfoInsertEventArgs(tmp, EAddpingPart.Before));
((ItemInfo)ActiveParent).MyContent.RefreshContentParts(); ((ItemInfo)ActiveParent).MyContent.RefreshContentParts();
if (tmp.IsSupInfoPart) (MyActiveSection as SectionInfo).HasSupInfoSteps = true;
return tmp; return tmp;
} }
private ItemInfo InsertSmartTemplateSubStep(string text, string number, ItemInfo tmp, EAddpingPart adPart, int type, E_FromType fromTypeTop) private ItemInfo InsertSmartTemplateSubStep(string text, string number, ItemInfo tmp, EAddpingPart adPart, int type, E_FromType fromTypeTop)
@ -699,7 +698,6 @@ namespace VEPROMS.CSLA.Library
// Update all of the content records that have transitions that point to the Siblings or Sibling Children of the new item // Update all of the content records that have transitions that point to the Siblings or Sibling Children of the new item
tmp.UpdateTransitionText(); tmp.UpdateTransitionText();
tmp.UpdateROText(); tmp.UpdateROText();
if (tmp.IsSupInfoPart) (MyActiveSection as SectionInfo).HasSupInfoSteps = true;
OnNewSiblingAfter(new ItemInfoInsertEventArgs(tmp, EAddpingPart.After)); OnNewSiblingAfter(new ItemInfoInsertEventArgs(tmp, EAddpingPart.After));
return tmp; return tmp;
} }
@ -870,7 +868,6 @@ namespace VEPROMS.CSLA.Library
tmp.UpdateROText(); tmp.UpdateROText();
MyContent.RefreshContentParts(); MyContent.RefreshContentParts();
ResetParts(); ResetParts();
if (tmp.IsSupInfoPart) (MyActiveSection as SectionInfo).HasSupInfoSteps = true;
OnNewChild(new ItemInfoInsertEventArgs(tmp, EAddpingPart.Child)); OnNewChild(new ItemInfoInsertEventArgs(tmp, EAddpingPart.Child));
return tmp; return tmp;
} }