Fixes bug on fetching Grant with Funder reference.
This commit is contained in:
parent
1c9d631fcd
commit
b13bfb4527
|
@ -112,7 +112,7 @@ public class GrantManager {
|
|||
userInfo.setId(principal.getId());
|
||||
if (grantCriteria.getCriteria().getFunderReference() != null && !grantCriteria.getCriteria().getFunderReference().trim().isEmpty()) {
|
||||
FunderCriteria funderCriteria = new FunderCriteria();
|
||||
funderCriteria.setReference(grantCriteria.getCriteria().getReference());
|
||||
funderCriteria.setReference(grantCriteria.getCriteria().getFunderReference());
|
||||
Funder funder = apiContext.getOperationsContext().getDatabaseRepository().getFunderDao().getWithCritetia(funderCriteria).getSingleOrDefault();
|
||||
grantCriteria.getCriteria().setFunderId(funder.getId().toString());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue