v1.18.x
Julian Lam 10 years ago
parent c0622743d2
commit 5160ab1ed1

@ -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) {

Loading…
Cancel
Save