From 24d6cf60ab865b35a0daa0c189c476f3446ce03a Mon Sep 17 00:00:00 2001 From: John Date: Tue, 11 Jul 2017 16:02:06 +0000 Subject: [PATCH] B2017-056 The chronology of changes report had duplicate records (two for each text change). We were clearing the change bar override when we did not need to which caused an additional write to the database thus the extra record. --- PROMS/Volian.Controls.Library/RTBItem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/RTBItem.cs b/PROMS/Volian.Controls.Library/RTBItem.cs index b9676e60..cffc4fd4 100644 --- a/PROMS/Volian.Controls.Library/RTBItem.cs +++ b/PROMS/Volian.Controls.Library/RTBItem.cs @@ -801,7 +801,9 @@ namespace Volian.Controls.Library // IF there is a step config remove the change bar override by setting the CBOverride value to null // This fixes a problem reported by Farly where if the change bar or overridden to be off, the next // time a change was made, the change bar remained turned off. - if (sc != null) + // B2017-056 there were duplicate audit records for each step text change, + // only clear the change bar override if it is being used + if (sc != null && sc.Step_CBOverride != null) sc.Step_CBOverride = null; // clear the change bar override MyStepRTB.FindAllLinks(); MyStepRTB.OrigRTF = MyStepRTB.Rtf;