From dad37c50a8ed75b4850f8185916b1542484a4b84 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 30 Oct 2014 12:46:58 +0000 Subject: [PATCH] Don't use template for Notes and Cautions off of sections --- 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 cf53fa71..694be663 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs @@ -564,7 +564,7 @@ namespace VEPROMS.CSLA.Library public ItemInfo InsertSiblingAfter(string text, string number, int? type) { ItemInfo tmp = null; - if (!IsSection && (FormatStepData.UseSmartTemplate || MyHLS.FormatStepData.UseSmartTemplate || FormatStepData.UseOldTemplate)) + if (!IsSection && (FormatStepData.UseSmartTemplate || (MyHLS != null && MyHLS.FormatStepData.UseSmartTemplate) || FormatStepData.UseOldTemplate)) tmp = InsertSmartTemplateSteps(text, number, tmp, EAddpingPart.After, (int)MyContent.Type); if(tmp == null) tmp = NewItemInfoFetch(ItemID, EAddpingPart.After, number, text, type, null, null, null, DateTime.Now, Volian.Base.Library.VlnSettings.UserID);