[Bug #670] Compare sumOfHoursAllocated with 0 to know if there were any assigments in TaskElement.getAssignedStatus().
With this change, ResourceAllocations aren't loaded anymore in simplified calculation. FEA: ItEr61S05BugFixing
This commit is contained in:
parent
1161a3181f
commit
7c2fcf7858
1 changed files with 7 additions and 7 deletions
|
|
@ -542,15 +542,15 @@ public abstract class TaskElement extends BaseEntity {
|
|||
}
|
||||
|
||||
public String getAssignedStatus() {
|
||||
if(isSimplifiedAssignedStatusCalculationEnabled()) {
|
||||
if (getSatisfiedResourceAllocations().isEmpty()) {
|
||||
return "unassigned";
|
||||
}
|
||||
return "assigned";
|
||||
}
|
||||
if (getSatisfiedResourceAllocations().isEmpty()) {
|
||||
if (getSumOfHoursAllocated() == 0) {
|
||||
return "unassigned";
|
||||
}
|
||||
if(isSimplifiedAssignedStatusCalculationEnabled()) {
|
||||
//simplified calculation has only two states:
|
||||
//unassigned, which was checked previously, and
|
||||
//assigned otherwise
|
||||
return "assigned";
|
||||
}
|
||||
for (ResourceAllocation<?> resourceAllocation : getSatisfiedResourceAllocations()) {
|
||||
final ResourcesPerDay resourcesPerDay = resourceAllocation.getResourcesPerDay();
|
||||
if (resourcesPerDay != null && resourcesPerDay.isZero()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue