ItEr60S04ValidacionEProbasFuncionaisItEr59S04 : [Bug #536]

it deletes the repeated criteria, when the resources load are
grouped by criteria.
This commit is contained in:
Susana Montes Pedreira 2010-06-22 10:49:28 +02:00 committed by Javier Moran Rua
parent 081443ece1
commit febb379777

View file

@ -248,7 +248,11 @@ public class ResourceLoadModel implements IResourceLoadModel {
List<ResourceAllocation<?>> listAllocations = new ArrayList<ResourceAllocation<?>>(
task.getSatisfiedResourceAllocations());
for (GenericResourceAllocation generic : (onlyGeneric(listAllocations))) {
allCriteriaList.addAll(generic.getCriterions());
for (Criterion criterion : generic.getCriterions()) {
if (!allCriteriaList.contains(criterion)) {
allCriteriaList.add(criterion);
}
}
}
}
allCriteriaList = Criterion.sortByTypeAndName(allCriteriaList);