From f6c6956381453c612a99feb80616a3bbd29cffb9 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 7 Aug 2014 21:02:30 +0000 Subject: [PATCH] Modified code to fix error where inserting high level steps failed --- PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs index 11af8bc3..48680b4c 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs @@ -526,7 +526,7 @@ namespace VEPROMS.CSLA.Library ItemInfo tmp = null; if (!IsSection && (FormatStepData.UseSmartTemplate || MyHLS.FormatStepData.UseSmartTemplate || FormatStepData.UseOldTemplate)) tmp = InsertSmartTemplateSteps(text, number, tmp, EAddpingPart.After, (int)MyContent.Type); - else + if(tmp == null) tmp = NewItemInfoFetch(ItemID, EAddpingPart.After, number, text, type, null, null, null, DateTime.Now, Volian.Base.Library.VlnSettings.UserID); // if next exists, it is updated in SQL so we have to manually force the iteminfo updates // Refresh ItemInfo to update PreviousID field