diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs index 2fe2bc4b..f7a75b6d 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs @@ -282,12 +282,16 @@ namespace VEPROMS.CSLA.Library return InsertSiblingBefore(text, null); } public ItemInfo InsertSiblingBefore(string text, string number) + { + return InsertSiblingBefore(text, number, null); + } + public ItemInfo InsertSiblingBefore(string text, string number,int? type) { ItemInfo tmp = null; if (!IsSection && (FormatStepData.UseSmartTemplate || MyHLS.FormatStepData.UseSmartTemplate || FormatStepData.UseOldTemplate)) tmp = InsertSmartTemplateSteps(text, number, tmp, EAddpingPart.Before, (int)MyContent.Type); else - tmp = NewItemInfoFetch(ItemID, EAddpingPart.Before, number, text, null, null, null, null, DateTime.Now, Volian.Base.Library.VlnSettings.UserID); + tmp = NewItemInfoFetch(ItemID, EAddpingPart.Before, number, text, type, null, null, null, DateTime.Now, Volian.Base.Library.VlnSettings.UserID); // this item is updated in SQL so we have to manually force the iteminfo updates // Refresh ItemInfo to update Previous