B2022-038: Don’t crash on table restore
This commit is contained in:
parent
88bdc706f4
commit
3739033311
@ -313,7 +313,9 @@ namespace Volian.Controls.Library
|
||||
GridAuditInfoList gail = GridAuditInfoList.Get(cai.ContentID);
|
||||
foreach (GridAuditInfo gai in gail)
|
||||
{
|
||||
if (gai.DeleteStatus == 0)
|
||||
// B2022-038: Fix crash on restore of grid. If it doesn't have a ContentAuditID don't add to list (was causing a Null access
|
||||
// when restoring the change)
|
||||
if (gai.DeleteStatus == 0 && gai.ContentAuditID != 0)
|
||||
{
|
||||
if (contentHistory == null)
|
||||
contentHistory = tvAudits.Nodes.Add("Content Changes"); //contentHistory = tvAudits.Nodes.Add("Content History");
|
||||
|
Loading…
x
Reference in New Issue
Block a user