From 6573db6c9f4c37b9523b40a1428b972961d826ac Mon Sep 17 00:00:00 2001 From: John Date: Wed, 31 Mar 2010 16:49:43 +0000 Subject: [PATCH] --- PROMS/DataLoader/TransitionFixer.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/PROMS/DataLoader/TransitionFixer.cs b/PROMS/DataLoader/TransitionFixer.cs index b228e7bc..6d52cd88 100644 --- a/PROMS/DataLoader/TransitionFixer.cs +++ b/PROMS/DataLoader/TransitionFixer.cs @@ -55,9 +55,11 @@ namespace DataLoader { get { return _MyStepRTB; } } - public TransitionFixer(StepRTB myStepRTB) + private string _LogPath; + public TransitionFixer(StepRTB myStepRTB,string logpath) { _MyStepRTB = myStepRTB; + _LogPath = logpath; } public TimeSpan Process() { @@ -78,8 +80,8 @@ namespace DataLoader MyStepRTB.ViewRTB = false; string originalText = item.MyContent.Text; string updatedText = item.MyContent.Text; - if (item.ItemID == 1850) - Console.WriteLine("HERE"); + //if (item.ItemID == 1850) + // Console.WriteLine("HERE"); if (item.ItemDocVersionCount != 0 || item.MyPrevious != null || item.MyParent != null) { if (item.MyContent.ContentTransitionCount > 0) @@ -110,7 +112,8 @@ namespace DataLoader } Status = "Saving problems"; ErrorCount = myProblems.RTBProblems.Count; - myProblems.Save(@"C:\temp\RTBProblems.xml"); + //myProblems.Save(@"C:\temp\RTBProblems.xml"); + myProblems.Save(_LogPath + @"\RTBProblems.xml"); Status = "Done comparing"; }