B2016-055 - Answering No to a dialog when doing a paste replace of a procedure was causing the code to crash.

B2016-048 - Editing an existing transition was causing the code to crash.
This commit is contained in:
Rich
2016-03-01 13:38:08 +00:00
parent 967e856f0c
commit 74f2b180eb
2 changed files with 9 additions and 4 deletions

View File

@@ -75,6 +75,7 @@ namespace VEPROMS.CSLA.Library
"\r\n\r\nSubsteps with Problem Transitions:" +
exTrans.Summarize(),
"Cannot Delete This Step", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (ans == DialogResult.No) return this;// If answer "NO" then return self
if (ans == DialogResult.Yes)
{
return exTrans[0].MyContent.ContentItems[0];
@@ -2031,6 +2032,7 @@ namespace VEPROMS.CSLA.Library
catch (Exception ex)
{
ItemInfo iii = itemInfo.HandleSqlExceptionOnDelete(ex);
if (iii == itemInfo) return null;// If self returned then return null
if (iii != null) return iii;
if (!HandleSqlExceptionOnCopy(ex))
{