ItEr29S06CUAsignacionGrupoRecursosAPlanificacionItEr28S06: Fixing bug that prevented showing specific resource allocations when there is no generic allocation.
This commit is contained in:
parent
34026b9b51
commit
1fdec0d290
1 changed files with 1 additions and 5 deletions
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
package org.navalplanner.web.planner.allocation;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
|
@ -221,10 +220,7 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
|
|||
List<GenericAllocationDTO> currentGeneric = AllocationDTO
|
||||
.getGeneric(dtos);
|
||||
if (currentGeneric.isEmpty()) {
|
||||
List<AllocationDTO> result = new ArrayList<AllocationDTO>();
|
||||
result.add(0, GenericAllocationDTO.createDefault());
|
||||
result.addAll(currentGeneric);
|
||||
return result;
|
||||
dtos.add(0, GenericAllocationDTO.createDefault());
|
||||
}
|
||||
return dtos;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue