This commit is contained in:
parent
0fd73b164d
commit
edd5793f18
@ -285,6 +285,9 @@ namespace VEPROMS.CSLA.Library
|
|||||||
// Refresh ItemInfo to update PreviousID field
|
// Refresh ItemInfo to update PreviousID field
|
||||||
if (tmp.NextItem != null) using (Item item = tmp.NextItem.Get()) ItemInfo.Refresh(item);
|
if (tmp.NextItem != null) using (Item item = tmp.NextItem.Get()) ItemInfo.Refresh(item);
|
||||||
RefreshNextItems();
|
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
|
// 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();
|
||||||
OnNewSiblingAfter(new ItemInfoInsertEventArgs(tmp, EAddpingPart.After));
|
OnNewSiblingAfter(new ItemInfoInsertEventArgs(tmp, EAddpingPart.After));
|
||||||
@ -657,7 +660,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
nextItem.UpdateTransitionText();
|
nextItem.UpdateTransitionText();
|
||||||
}
|
}
|
||||||
else if (prevItem != null)
|
else if (prevItem != null)
|
||||||
|
{
|
||||||
prevItem.RefreshNextItems();
|
prevItem.RefreshNextItems();
|
||||||
|
if (prevItem.IsCaution || prevItem.IsNote) prevItem.ResetOrdinal();
|
||||||
|
}
|
||||||
ItemInfo.DeleteItemInfoAndChildren(item.ItemID); // Dispose ItemInfo and Children
|
ItemInfo.DeleteItemInfoAndChildren(item.ItemID); // Dispose ItemInfo and Children
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user