From 5160ab1ed11adf731e405b4a5de70b663022c389 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 19 Jan 2015 15:09:36 -0500 Subject: [PATCH] closed #2625 --- src/groups.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/groups.js b/src/groups.js index 11539576e5..42f1e6528f 100644 --- a/src/groups.js +++ b/src/groups.js @@ -542,6 +542,15 @@ var async = require('async'), function(next) { db.setObjectField('group:' + oldName, 'name', newName, next); }, + function(next) { + db.setObjectField('group:' + oldName, 'slug', utils.slugify(newName), next); + }, + function(next) { + db.deleteObjectField('groupslug:groupname', group.slug, next); + }, + function(next) { + db.setObjectField('groupslug:groupname', utils.slugify(newName), newName, next); + }, function(next) { db.getSetMembers('groups', function(err, groups) { if (err) {