B2016-081 if a transition is to a non-editable section, also check that if it goes to a step in that non-editable section

This commit is contained in:
John Jenko 2016-03-21 15:13:44 +00:00
parent ba8d5d9ea7
commit ee91973682
2 changed files with 3 additions and 3 deletions

View File

@ -634,7 +634,7 @@ namespace VEPROMS.CSLA.Library
if (traninfo.MyItemToID.ActiveSection != null) if (traninfo.MyItemToID.ActiveSection != null)
{ {
SectionConfig sc = traninfo.MyItemToID.ActiveSection.MyConfig as SectionConfig; SectionConfig sc = traninfo.MyItemToID.ActiveSection.MyConfig as SectionConfig;
forceConvertToText = (sc.SubSection_Edit == "N"); forceConvertToText = (sc.SubSection_Edit == "N" && traninfo.MyItemToID.IsStep); // Bug fix B2016-081 also check if transition is to a step element
} }
if (forceConvertToText) if (forceConvertToText)
{ {

View File

@ -744,7 +744,7 @@ namespace VEPROMS.CSLA.Library
{ {
SectionConfig sc = tran.MyItemToID.ActiveSection.MyConfig as SectionConfig; SectionConfig sc = tran.MyItemToID.ActiveSection.MyConfig as SectionConfig;
//SectionConfig sc = new SectionConfig(tran.MyItemToID.ActiveSection.MyConfig.ToString()); //SectionConfig sc = new SectionConfig(tran.MyItemToID.ActiveSection.MyConfig.ToString());
forceConvertToText = (sc.SubSection_Edit == "N"); forceConvertToText = (sc.SubSection_Edit == "N" && tran.MyItemToID.IsStep); // Bug fix B2016-081 also check if transition is to a step element
} }
if (!forceConvertToText) //check to see if external with internal format if (!forceConvertToText) //check to see if external with internal format
{ {
@ -793,7 +793,7 @@ namespace VEPROMS.CSLA.Library
{ {
SectionConfig sc = tran.MyItemToID.ActiveSection.MyConfig as SectionConfig; SectionConfig sc = tran.MyItemToID.ActiveSection.MyConfig as SectionConfig;
//SectionConfig sc = new SectionConfig(tran.MyItemToID.ActiveSection.MyConfig.ToString()); //SectionConfig sc = new SectionConfig(tran.MyItemToID.ActiveSection.MyConfig.ToString());
forceConvertToText = (sc.SubSection_Edit == "N"); forceConvertToText = (sc.SubSection_Edit == "N" && tran.MyItemToID.IsStep); // Bug fix B2016-081 also check if transition is to a step element
} }
if (!forceConvertToText) //check to see if external with internal format if (!forceConvertToText) //check to see if external with internal format
{ {