Small code refactor. With these changes, the code runs exactly the same way.

FEA: ItEr76S04BugFixing
This commit is contained in:
Jacobo Aragunde Pérez 2012-07-16 12:37:12 +02:00
parent 8b0b11397f
commit b24ee03837

View file

@ -203,15 +203,10 @@ public class TaskSource extends BaseEntity {
OrderElement orderElement) {
task.setName(orderElement.getName());
Date orderInitDate = orderElement.getOrder().getInitDate();
if (task.getStartDate() == null && orderInitDate != null) {
if (task.getIntraDayStartDate() == null && orderInitDate != null) {
task.setStartDate(orderInitDate);
}
if (task.getEndDate() == null) {
task.initializeDatesIfNeeded();
}
if (!hasSomeAllocationDone(task)) {
task.initializeDatesIfNeeded();
}
task.initializeDatesIfNeeded();
task.updateDeadlineFromOrderElement();
}