From 3cafd689af13657bd583fbfec8a37e62eee7ca4b Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 7 Jul 2014 21:14:00 +0200 Subject: [PATCH] Fix Pad#copy routine for updating group list --- src/node/db/Pad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index 1589e8c5..4670696a 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -552,7 +552,7 @@ Pad.prototype.copy = function copy(destinationID, force, callback) { }, function(callback) { // Group pad? Add it to the group's list - if(destGroupID) db.setSub("group:" + destGroupID, ["pads", padID], 1); + if(destGroupID) db.setSub("group:" + destGroupID, ["pads", destinationID], 1); // Initialize the new pad (will update the listAllPads cache) padManager.getPad(destinationID, null, callback)