Fixed a null reference when doing an Insert Before
This commit is contained in:
parent
ff57e04521
commit
899e58cba0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user