[Bug #1064] Fixed more problems related with this issue.
FEA: ItEr74S04BugFixing
This commit is contained in:
parent
9a43ab48fa
commit
d1342cc4b8
2 changed files with 8 additions and 4 deletions
|
|
@ -1096,7 +1096,7 @@ public abstract class OrderElement extends IntegrationEntity implements
|
|||
return false;
|
||||
}
|
||||
|
||||
protected boolean checkAncestorsNoOtherLabelRepeated(Label newLabel) {
|
||||
public boolean checkAncestorsNoOtherLabelRepeated(Label newLabel) {
|
||||
for (Label label : labels) {
|
||||
if (label.isEqualTo(newLabel)) {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -241,8 +241,10 @@ public abstract class OrderElementTemplate extends BaseEntity implements
|
|||
|
||||
private void setupCriterionRequirements(OrderElement orderElement) {
|
||||
for (DirectCriterionRequirement each : getDirectCriterionRequirements()) {
|
||||
orderElement.addCriterionRequirement(DirectCriterionRequirement
|
||||
.copyFrom(each, orderElement));
|
||||
if (orderElement.canAddCriterionRequirement(each)) {
|
||||
orderElement.addCriterionRequirement(DirectCriterionRequirement
|
||||
.copyFrom(each, orderElement));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -255,7 +257,9 @@ public abstract class OrderElementTemplate extends BaseEntity implements
|
|||
|
||||
private void setupLabels(OrderElement orderElement) {
|
||||
for (Label each : getLabels()) {
|
||||
orderElement.addLabel(each);
|
||||
if (orderElement.checkAncestorsNoOtherLabelRepeated(each)) {
|
||||
orderElement.addLabel(each);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue