Commit 576bd5c3 authored by michael.simon's avatar michael.simon
Browse files

add missing user object to renderercontext

if identity has exact one user
parent 71520d10
......@@ -77,6 +77,10 @@ public class TemplateMailServiceImpl implements TemplateMailService {
if ((! rendererContext.containsKey("user")) && (identity.getPrefUser() != null)) {
rendererContext.put("user", identity.getPrefUser());
}
else if ((! rendererContext.containsKey("user")) && (identity.getUsers().size() == 1)) {
for (UserEntity user : identity.getUsers())
rendererContext.put("user", user);
}
}
else if (rendererContext.containsKey("user")) {
UserEntity user = userDao.merge((UserEntity) rendererContext.get("user"));
......
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