Fixed problem trying to convert an empty string to a number

B2013-007 fixed logic to handle “{Proc Num} ({Proc Title}) Step {First Step}” transition when no step number is used.  Needed to append a “)”.
This commit is contained in:
2013-01-17 18:17:53 +00:00
parent 6a325705d7
commit a8d351bfc2
2 changed files with 5 additions and 2 deletions

View File

@@ -1202,7 +1202,7 @@ namespace VEPROMS.CSLA.Library
ProcedureConfig pc = (ProcedureConfig)parent.MyConfig;
int sectstartid = -1;
string ss = pc == null ? null : pc.SectionStart;
if (ss != null) sectstartid = System.Convert.ToInt32(ss);
if (ss != null && ss != "") sectstartid = System.Convert.ToInt32(ss);
else return false;
if (ItemID == sectstartid) return true;
return false;