From f4ec60c9e04f3e61cf58c0a8acb6f8b24381492f Mon Sep 17 00:00:00 2001 From: John Jenko Date: Thu, 18 Jun 2026 14:06:30 -0400 Subject: [PATCH] B2026-060, B2026-061, Fixed issue where change bars were printing when they should not have been. --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index d4c61f96..b6f02379 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -4113,7 +4113,10 @@ namespace VEPROMS.CSLA.Library // date). Print_ViewableAfterChangeBarDate was created to get only that user specified date, if it exists. If it does exist, we compare // that with the Content datetime, otherwise we proceed as before. DateTime? viewableStartingDateTime = (MyProcedure.MyConfig as ProcedureConfig).Print_ViewableStartingChangeBarDate; - if (viewableStartingDateTime != null && viewableStartingDateTime > MyProcedure.ChangeBarDate && (MyProcedure.MyConfig as ProcedureConfig).SelectedSlave == 0) + // B2026-060 & B2026-061 removed the check of SelectedSlave (aka the selected child) from the IF statement, + // This was causing some step to print with change bars when there should not have been - because of the use of + // the Show Change Bars After date. The logic we need is built into the get of ChangeBarDate and Print_ViewableStartingChangeBarDate. + if (viewableStartingDateTime != null && viewableStartingDateTime > MyProcedure.ChangeBarDate) return (MyContent.DTS > viewableStartingDateTime); return (MyContent.DTS > MyProcedure.ChangeBarDate); }