Iterate over an order's children to retrieve its criteria when filtering by criteria.
We make sure the criteria are being loaded, preventing the need of pre-loading them. FEA: ItEr60S17CambiosPantallaVistaEmpresa
This commit is contained in:
parent
af96a69ca1
commit
d03748cb81
1 changed files with 7 additions and 0 deletions
|
|
@ -128,6 +128,13 @@ public class OrderPredicate implements IPredicate {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
for(OrderElement child : order.getAllChildren()) {
|
||||
for(CriterionRequirement criterionRequirement : child.getCriterionRequirements()) {
|
||||
if(criterionRequirement.getCriterion().getId().equals(filterCriterion.getId())){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue