summaryrefslogtreecommitdiff
path: root/src/node/db/Pad.js
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2014-07-07 21:14:00 +0200
committerMarcel Klehr <mklehr@gmx.net>2014-07-07 21:14:00 +0200
commit3cafd689af13657bd583fbfec8a37e62eee7ca4b (patch)
tree9267118a818ef01a351a242395ceaeeb9a51664e /src/node/db/Pad.js
parentc4f9828825f812de7521edbd2654b0f02299510b (diff)
downloadetherpad-lite-3cafd689af13657bd583fbfec8a37e62eee7ca4b.zip
Fix Pad#copy routine for updating group list
Diffstat (limited to 'src/node/db/Pad.js')
-rw-r--r--src/node/db/Pad.js2
1 files changed, 1 insertions, 1 deletions
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)