Both checks are redundant with those made in Task::preScheduleOk().
Moreover the check concerning milestones is less precise than the
one in Task::preScheduleOk() because the later detects implicit
milestones (tasks with no effort, no duration and no length)
whereas the removed check only handles tasks declared as milestones
by the "milestone" property (because it is done earlier in the
pre-scheduling process).
}
}
-
- if (task->hasSubs())
- {
- errorMessage(i18n("'%1' is a container task. It must not have "
- "bookings assigned to it.").arg(task->getId()));
- return 0;
- }
- if (task->isMilestone())
- {
- errorMessage(i18n("'%1' is a milestone task. It must not have "
- "bookings assigned to it.").arg(task->getId()));
- return 0;
- }
-
-
int sloppy = 0;
int overtime = 0;
if ((tt = nextToken(token)) == LBRACE)