diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs index c05f7f8c..129dbecc 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs @@ -285,6 +285,9 @@ namespace VEPROMS.CSLA.Library // Refresh ItemInfo to update PreviousID field if (tmp.NextItem != null) using (Item item = tmp.NextItem.Get()) ItemInfo.Refresh(item); RefreshNextItems(); + // if inserting after a caution or note, refreshes tabs. This will adjust bullets + // of any previous cautions or notes. + if (tmp.IsCaution || tmp.IsNote) ResetOrdinal(); // Update all of the content records that have transitions that point to the Siblings or Sibling Children of the new item tmp.UpdateTransitionText(); OnNewSiblingAfter(new ItemInfoInsertEventArgs(tmp, EAddpingPart.After)); @@ -657,7 +660,10 @@ namespace VEPROMS.CSLA.Library nextItem.UpdateTransitionText(); } else if (prevItem != null) + { prevItem.RefreshNextItems(); + if (prevItem.IsCaution || prevItem.IsNote) prevItem.ResetOrdinal(); + } ItemInfo.DeleteItemInfoAndChildren(item.ItemID); // Dispose ItemInfo and Children } catch (Exception ex)