v1.18.x
barisusakli 11 years ago
parent 1e6d589080
commit 5292bdad5a

@ -203,6 +203,7 @@
var groupData = { var groupData = {
name: name, name: name,
userTitle: name,
description: description, description: description,
deleted: '0', deleted: '0',
hidden: '0', hidden: '0',
@ -345,11 +346,10 @@
db.getObjectsFields(groupKeys, ['name', 'hidden', 'userTitle', 'icon', 'labelColor'], function(err, groupData) { db.getObjectsFields(groupKeys, ['name', 'hidden', 'userTitle', 'icon', 'labelColor'], function(err, groupData) {
groupData = groupData.filter(function(group) { groupData = groupData.filter(function(group) {
return parseInt(group.hidden, 10) !== 1; return parseInt(group.hidden, 10) !== 1 && !!group.userTitle;
}); });
var groupSets = groupData.map(function(group) { var groupSets = groupData.map(function(group) {
group.userTitle = group.userTitle || group.name;
group.labelColor = group.labelColor || '#000000'; group.labelColor = group.labelColor || '#000000';
return 'group:' + group.name + ':members'; return 'group:' + group.name + ':members';
}); });

Loading…
Cancel
Save