Skip to content

Commit f1d1fce

Browse files
committed
Adding the missing filter for removed PlanRegistrations.
1 parent 1629b26 commit f1d1fce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/Services/TimePlanningWorkingHoursService/TimePlanningWorkingHoursService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public async Task<OperationDataResult<List<TimePlanningWorkingHoursModel>>> Inde
154154

155155
var lastPlanning = dbContext.PlanRegistrations
156156
.AsNoTracking()
157+
.Where(x => x.WorkflowState != Constants.WorkflowStates.Removed)
157158
.Where(x => x.Date < model.DateFrom)
158159
.Where(x => x.SdkSitId == model.SiteId).OrderBy(x => x.Date).LastOrDefault();
159160

0 commit comments

Comments
 (0)