Bug #1454: Force update task size after reassignations

FEA: ItEr76S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-06-07 18:32:43 +02:00
parent b51814bc46
commit 5506482e42
2 changed files with 9 additions and 0 deletions

View file

@ -538,4 +538,9 @@ public abstract class Task implements ITaskFundamentalProperties {
return fundamentalProperties.isRoot();
}
public void updateSizeDueToDateChanges(GanttDate previousStart, GanttDate previousEnd) {
dependenciesEnforcerHook.setStartDate(previousStart, previousEnd,
getBeginDate());
}
}

View file

@ -167,11 +167,15 @@ public class ReassignCommand implements IReassignCommand {
final int total = reassignations.size();
for (final WithAssociatedEntity each : reassignations) {
Task ganttTask = each.ganntTask;
GanttDate previousStart = ganttTask.getBeginDate();
GanttDate previousEnd = ganttTask.getEndDate();
transactionService
.runOnReadOnlyTransaction(reassignmentTransaction(each));
diagramGraph.enforceRestrictions(each.ganntTask);
ganttTask.enforceDependenciesDueToPositionPotentiallyModified();
ganttTask.updateSizeDueToDateChanges(previousStart, previousEnd);
updater.doUpdate(showCompleted(i, total));
i++;
}