B2023-072: Crash when restoring annotation whose type had been removed
This commit is contained in:
@@ -1704,8 +1704,9 @@ namespace VEPROMS.CSLA.Library
|
||||
try
|
||||
{
|
||||
AnnotationInfo tmp = DataPortal.Fetch<AnnotationInfo>(new RestoreCriteria(aai));
|
||||
// B2023 - 073: Crash when restoring annotation whose type had been removed (if no record return null)
|
||||
if (tmp.ErrorMessage == "No Record Found") return null;
|
||||
AddToCache(tmp);
|
||||
if (tmp.ErrorMessage == "No Record Found") tmp = null;
|
||||
tmp.MyItem.RefreshItemAnnotations();
|
||||
return tmp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user