Compare commits
No commits in common. "be72063a3c3132e6cf2a404f06dc7d925247821c" and "95e21a67243fdfc6ebbfdcabed4d7f1b75c032e8" have entirely different histories.
be72063a3c
...
95e21a6724
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1704,9 +1704,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
AnnotationInfo tmp = DataPortal.Fetch<AnnotationInfo>(new RestoreCriteria(aai));
|
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);
|
AddToCache(tmp);
|
||||||
|
if (tmp.ErrorMessage == "No Record Found") tmp = null;
|
||||||
tmp.MyItem.RefreshItemAnnotations();
|
tmp.MyItem.RefreshItemAnnotations();
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
@ -827,16 +827,6 @@ namespace Volian.Controls.Library
|
|||||||
if (FlexibleMessageBox.Show(this, "Do you want to restore this annotation?", "Confirm Annotation Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
if (FlexibleMessageBox.Show(this, "Do you want to restore this annotation?", "Confirm Annotation Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
AnnotationInfo ai = AnnotationInfo.RestoreAnnotation(aai);
|
AnnotationInfo ai = AnnotationInfo.RestoreAnnotation(aai);
|
||||||
// B2023-072: Don't crash if annotation type was deleted for the restore annotation
|
|
||||||
if (ai == null)
|
|
||||||
{
|
|
||||||
AnnotationTypeInfo ati = AnnotationTypeInfo.Get(aai.TypeID);
|
|
||||||
if (ati == null)
|
|
||||||
{
|
|
||||||
FlexibleMessageBox.Show(this, "Annotation Type was deleted, cannot restore Annotation Type\r\nCopy text from window in Change Details and paste into new annotation to restore the text.", "Annotation Type Deleted", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
OnAnnotationRestored(ai, ai.MyItem);
|
OnAnnotationRestored(ai, ai.MyItem);
|
||||||
RefreshRequired = true;
|
RefreshRequired = true;
|
||||||
UpdateHistory();
|
UpdateHistory();
|
||||||
|
998
PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs
generated
998
PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user