B2018-002 Handle Range Transitions for Invalid Transitions

Add a prefix to transitions converted to text which were invalid
B2018-002 Add counters for invalid transitions converted to text.
Added a method to convert invalid transitions to text
B2018-002 Cleanup debug
B2018-002 Changed the panel so that it only requires a default section if the default is not set and it is required
B2018-010 Logic fixed to display the Requires Default tooltip only when it is required.
B2018-002 Fix invalid transitions when a step is activated.
B2018-002 Don't fail when you open a step with an invalid transition.
B2018-002 Display Transition Refresh Statistics
This commit is contained in:
Rich
2018-01-24 14:47:34 +00:00
parent 58c23de1ea
commit 01ce36b86a
7 changed files with 133 additions and 37 deletions

View File

@@ -281,6 +281,12 @@ namespace Volian.Controls.Library
{
if (args.MyLinkText.LinkInfoText.IndexOf("Transition") > -1)
{
// B2018-002 - Invalid Transitions - Don't fail on invalid transition
if(args.MyLinkText.MyTransitionInfo == null)
{
MessageBox.Show("This transition is invalid\r\n\r\nDelete it and replace it with \r\na valid transition", "Invalid Transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return; // Not a valid transition
}
ItemInfo item = args.MyLinkText.MyTranToItemInfo;
if (item == null || item.MyDocVersion == null || (item.PreviousID == null && item.ItemPartCount == 0 && item.ItemDocVersionCount == 0))
{