dont allow move to same topic

v1.18.x
barisusakli 10 years ago
parent 8bba811aaf
commit da4014eb71

@ -86,6 +86,11 @@ module.exports = function(Topics) {
if (!post || !post.tid) {
return next(new Error('[[error:no-post]]'));
}
if (parseInt(post.tid, 10) === parseInt(tid, 10)) {
return next(new Error('[[error:cant-move-to-same-topic]]'))
}
postData = post;
postData.pid = pid;

Loading…
Cancel
Save