Skip to content
Snippets Groups Projects
Commit 84364a23 authored by Felix Schmidt's avatar Felix Schmidt
Browse files

Timestamp of interposed questions is saved across import / export. Removed console debug output.

parent dd120b3b
Branches
Tags
No related merge requests found
......@@ -540,7 +540,11 @@ public class CouchDBDao implements IDatabaseDao {
q.put("sessionId", session.get_id());
q.put("subject", question.getSubject());
q.put("text", question.getText());
q.put("timestamp", System.currentTimeMillis());
if (question.getTimestamp() != 0) {
q.put("timestamp", question.getTimestamp());
} else {
q.put("timestamp", System.currentTimeMillis());
}
q.put("read", false);
q.put("creator", user.getUsername());
try {
......
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