From 1e557f2b8ec6a5ee5ebcbcaf090b6e0689af6058 Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 20 Jun 2014 14:09:23 +0000 Subject: [PATCH] Changed logic to use ChangeIDs format flag and Editorial Change status to update the Change ID for a text element when a text element is changed. --- PROMS/Volian.Controls.Library/RTBItem.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/RTBItem.cs b/PROMS/Volian.Controls.Library/RTBItem.cs index 79ef0581..1ec23b1d 100644 --- a/PROMS/Volian.Controls.Library/RTBItem.cs +++ b/PROMS/Volian.Controls.Library/RTBItem.cs @@ -678,10 +678,14 @@ namespace Volian.Controls.Library // if the plant has the change id option, the change id was entered when the program started. // this should be saved for every piece of edited data. Note that the set of config // item Step_MultipleChangeID has the save built in to it. - if (MyStepRTB.MyItemInfo.IsStep && MyStepRTB.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChgBarMessageFromEdit) + if (MyStepRTB.MyItemInfo.IsStep && + MyStepRTB.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeIds + && !this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.EditorialChange) { StepConfig sc = MyStepRTB.MyItemInfo.MyConfig as StepConfig; + if (sc == null) sc = new StepConfig(); sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId; + //if (MyStepRTB.MyItemInfo.MyConfig == null) itm.MyContent.Config = sc.ToString(); } MyStepRTB.FindAllLinks(); MyStepRTB.OrigRTF = MyStepRTB.Rtf;