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.

This commit is contained in:
John Jenko 2017-07-11 16:02:06 +00:00
parent f3f99b97ad
commit 24d6cf60ab

View File

@ -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;