Commit f0d83641 authored by Matija Obreza's avatar Matija Obreza
Browse files

FIX: User cannot validate request

- failed to lazily initialize a collection of role: org.genesys2.server.model.impl.FaoInstitute.settings
parent 0e02db14
......@@ -355,7 +355,7 @@ public class RequestServiceImpl implements RequestService {
String recipient = null;
final Locale recipientLocale = Locale.ENGLISH;
final FaoInstitute institute = instituteService.getInstitute(materialSubRequest.getInstCode());
final FaoInstitute institute = instituteService.findInstitute(materialSubRequest.getInstCode());
final FaoInstituteSetting instMailToSetting = institute.getSettings().get("requests.mailto");
if (instMailToSetting != null) {
recipient = StringUtils.defaultIfBlank(instMailToSetting.getValue(), null);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment