ItEr60S04ValidacionEProbasFuncionaisItEr59S04 : [Bug #536]
it deletes the repeated criteria, when the resources load are grouped by criteria.
This commit is contained in:
parent
081443ece1
commit
febb379777
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue