Bug #1448: Fix issue reattaching the work report before removing

This allows to navigate the work report lines without problems.

FEA: ItEr76S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-05-22 10:09:52 +02:00
parent 13124ee951
commit 5e2ad5092b

View file

@ -412,6 +412,7 @@ public class WorkReportModel extends IntegrationEntityModel implements
public void remove(WorkReport workReport) {
//before deleting the report, update OrderElement.SumChargedHours
try {
workReportDAO.reattach(workReport);
sumChargedEffortDAO
.updateRelatedSumChargedEffortWithDeletedWorkReportLineSet(workReport
.getWorkReportLines());