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:
Jacobo Aragunde Pérez 2010-09-06 12:48:34 +02:00
parent af96a69ca1
commit d03748cb81

View file

@ -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;
}