Skip to content
Snippets Groups Projects
Commit e39a61d7 authored by Tom Käsler's avatar Tom Käsler
Browse files

fix motd import

parent 998c5e97
Branches
Tags
No related merge requests found
...@@ -2170,10 +2170,11 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware ...@@ -2170,10 +2170,11 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
d.put("type", "motd"); d.put("type", "motd");
d.put("motdkey", m.getMotdkey()); d.put("motdkey", m.getMotdkey());
d.put("title", m.getTitle()); d.put("title", m.getTitle());
d.put("text", m.getText());
d.put("audience", m.getAudience()); d.put("audience", m.getAudience());
d.put("sessionkey", session.getKeyword()); d.put("sessionkey", session.getKeyword());
d.put("startdate", String.valueOf(m.getStartdate())); d.put("startdate", String.valueOf(m.getStartdate().getTime()));
d.put("enddate", String.valueOf(m.getEnddate())); d.put("enddate", String.valueOf(m.getEnddate().getTime()));
motds.add(d); motds.add(d);
} }
List<Document> documents = new ArrayList<Document>(answers); List<Document> documents = new ArrayList<Document>(answers);
......
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