Bug #1380: Don't allow ASAP constraint for tasks in projects where init date is
not set. FEA: ItEr76S04BugFixing
This commit is contained in:
parent
7e850ffaee
commit
33881786b0
1 changed files with 6 additions and 2 deletions
|
|
@ -143,8 +143,12 @@ public class TaskPropertiesController extends GenericForwardComposer {
|
||||||
private void setItemsStartConstraintTypesCombo(Order order) {
|
private void setItemsStartConstraintTypesCombo(Order order) {
|
||||||
startConstraintTypes.getChildren().clear();
|
startConstraintTypes.getChildren().clear();
|
||||||
for (PositionConstraintType type : PositionConstraintType.values()) {
|
for (PositionConstraintType type : PositionConstraintType.values()) {
|
||||||
if (type != PositionConstraintType.AS_LATE_AS_POSSIBLE
|
if ((type != PositionConstraintType.AS_LATE_AS_POSSIBLE &&
|
||||||
|| order.getDeadline() != null) {
|
type != PositionConstraintType.AS_SOON_AS_POSSIBLE) ||
|
||||||
|
(type == PositionConstraintType.AS_LATE_AS_POSSIBLE &&
|
||||||
|
order.getDeadline() != null) ||
|
||||||
|
(type == PositionConstraintType.AS_SOON_AS_POSSIBLE &&
|
||||||
|
order.getInitDate() != null)) {
|
||||||
Comboitem comboitem = new Comboitem(_(type.getName()));
|
Comboitem comboitem = new Comboitem(_(type.getName()));
|
||||||
comboitem.setValue(type);
|
comboitem.setValue(type);
|
||||||
startConstraintTypes.appendChild(comboitem);
|
startConstraintTypes.appendChild(comboitem);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue