From fdb86d4a74cefa500c0dc3f970c49ee0fb1987b0 Mon Sep 17 00:00:00 2001 From: Christoph Thelen <christoph.thelen@mni.thm.de> Date: Thu, 12 Feb 2015 12:55:12 +0100 Subject: [PATCH] Fix bulk delete question with answers --- src/main/java/de/thm/arsnova/dao/CouchDBDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/thm/arsnova/dao/CouchDBDao.java b/src/main/java/de/thm/arsnova/dao/CouchDBDao.java index 0cc065395..ddf611eda 100644 --- a/src/main/java/de/thm/arsnova/dao/CouchDBDao.java +++ b/src/main/java/de/thm/arsnova/dao/CouchDBDao.java @@ -730,7 +730,7 @@ public class CouchDBDao implements IDatabaseDao { for (final Document d : results.getResults()) { final Question q = new Question(); q.set_id(d.getId()); - q.set_rev(d.getRev()); + q.set_rev(d.getJSONObject("value").getString("_rev")); questions.add(q); } deleteAllAnswersWithQuestions(questions); -- GitLab