Fixed a null reference when doing an Insert Before

This commit is contained in:
John Jenko 2014-08-20 19:15:23 +00:00
parent ff57e04521
commit 899e58cba0

View File

@ -290,7 +290,7 @@ namespace VEPROMS.CSLA.Library
ItemInfo tmp = null;
if (!IsSection && (FormatStepData.UseSmartTemplate || MyHLS.FormatStepData.UseSmartTemplate || FormatStepData.UseOldTemplate))
tmp = InsertSmartTemplateSteps(text, number, tmp, EAddpingPart.Before, (int)MyContent.Type);
else
if (tmp == null)
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