Cleaned up status messages and results message when refreshing transitions

B2017-165 convert ? transition from 16-bit to 32-bit conversion to text
This commit is contained in:
2017-08-08 19:51:20 +00:00
parent 2a28bac333
commit 21184ba366
3 changed files with 27 additions and 14 deletions

View File

@@ -611,6 +611,7 @@ namespace VEPROMS.CSLA.Library
// content.Save();
// }
//}
if (itemInfo == null) return;
if (itemInfo.MyContent.ContentPartCount > 0)
foreach (PartInfo pi in itemInfo.MyContent.ContentParts)
{
@@ -690,7 +691,9 @@ namespace VEPROMS.CSLA.Library
string oldText = itemInfo.MyContent.Text;
itemInfo.MyContent.FixTransitionText(traninfo, itemInfo);
string newText = itemInfo.MyContent.Text;
if (newText != oldText)
// B2017-165 added check of newValue (special case for old 16-bit transition that was not fixed by the customer)
string newValue = traninfo.ResolvePathTo(itemInfo.ActiveFormat, itemInfo, traninfo.TranType, traninfo.MyItemToID, traninfo.MyItemRangeID);
if (newText != oldText|| newValue == "?")
{
TranFixCount++;
Content content = Content.Get(itemInfo.MyContent.ContentID);