diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index 092fbd7c..f449486d 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -1393,21 +1393,21 @@ namespace VEPROMS.CSLA.Library MSWordToPDF.RoPrintCache = new Dictionary(); // Check if the Rochild is in the PrintCache (use base accPageID without specific extension) - if (!RoPrintCache.ContainsKey(accPageBase)) + if (!RoPrintCache.ContainsKey(accPageKey)) //B2023-006 pass in the actual key instead of the base key.//old code=> accPageBase)) { // Lookup RoChild Info from database - roc = lookup.GetROChildByAccPageID(accPageBase); + roc = lookup.GetROChildByAccPageID(accPageKey); //B2023-006 pass in the actual key instead of the base key.//old code=> accPageBase); // Check if RO is valid if (roc.ID < 0 || string.IsNullOrEmpty(roc.roid)) return ROFSTLookup.GetEmptyRoChild(); // If Valid Rochild, then add Rochild to Print Cache - RoPrintCache.Add(accPageBase, roc); + RoPrintCache.Add(accPageKey, roc); //B2023-006 pass in the actual key instead of the base key.//old code=> accPageBase, roc); } else // Get Base Rochild from Print Cache { - roc = (ROFSTLookup.rochild)RoPrintCache[accPageBase]; + roc = (ROFSTLookup.rochild)RoPrintCache[accPageKey]; //B2023-006 pass in the actual key instead of the base key.//old code=> [accPageBase]; } // Check if RO is a "Unit Information" value (Ex: , etc..)