Revision 46633
Added by Panagiotis Kanakakis about 7 years ago
RequestManagerImpl.java | ||
---|---|---|
3 | 3 |
import eu.dnetlib.goldoa.domain.*; |
4 | 4 |
import eu.dnetlib.goldoa.service.dao.RequestDAO; |
5 | 5 |
import eu.dnetlib.goldoa.service.utils.EmailUtils; |
6 |
import net.sf.ehcache.search.expression.Or; |
|
6 | 7 |
import org.springframework.beans.factory.annotation.Autowired; |
7 | 8 |
import org.springframework.dao.EmptyResultDataAccessException; |
8 | 9 |
import org.springframework.stereotype.Service; |
... | ... | |
250 | 251 |
if (request.getBudget() != null) { |
251 | 252 |
Budget budget = request.getBudget(); |
252 | 253 |
|
253 |
if (budget.getOrganization() != null) |
|
254 |
//Organization organization = budgetManager.getBudgetForOrganization(budget.getId()); |
|
255 |
Organization organization = budget.getOrganizations().get(0); |
|
256 |
if (organization != null) |
|
254 | 257 |
request.setStatus(Request.RequestStatus.LIBRARY_FUND_SUBMITTED); |
255 | 258 |
else if (budget.getPublisher() != null) |
256 | 259 |
request.setStatus(Request.RequestStatus.PUBLISHER_FUND_SUBMITTED); |
Also available in: Unified diff