B2026-088 Refresh Issue with Refreshing Step Numbers After an inserted Step

This commit is contained in:
mschill committed 2026-11-11 15:11:59 -05:00
1 parent df2934a654
commit 1d51080765
3 files changed
+37 -3

No files matched your search

@@ -2153,7 +2153,28 @@ namespace VEPROMS.CSLA.Library
return GetNext();
}
}
private static void ResetOrdinal(int itemID)
//B2026-088 Refresh Issue with Refreshing Step Numbers After an inserted Step
public void ResetOrdinalandPrevious(ItemInfo prevItm)
{
MyPrevious = prevItm;
_Ordinal = null;
_TagsSetup = false;
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(ItemID.ToString()))
{
ItemInfo[] items = _CacheByPrimaryKey[ItemID.ToString()].ToArray();
foreach (ItemInfo item in items)
{
item.MyPrevious = prevItm;
item._Ordinal = null;
item._TagsSetup = false;
}
}
OnOrdinalChange(ItemID); // After _Ordinal reset trigger event
}
private static void ResetOrdinal(int itemID)
{
ConvertListToDictionary();
string key = itemID.ToString();