summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-01-26 21:06:27 +0000
committerthomascube <thomas@roundcube.net>2011-01-26 21:06:27 +0000
commitf6c7afd2d99fc1e61af15d0cbeaa2bc2081beaaf (patch)
tree59c24065fb830b1cd2ba5be413dfa5d688a486ed
parentcdb8b96e31fdb71b37fe6b0fca81ef5221de7a6d (diff)
Fix group item identifiers
-rw-r--r--program/steps/addressbook/func.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc
index 900d4a8d5..be0c82d8b 100644
--- a/program/steps/addressbook/func.inc
+++ b/program/steps/addressbook/func.inc
@@ -156,13 +156,13 @@ function rcmail_contact_groups($args)
if (!empty($groups)) {
$line_templ = html::tag('li', array(
- 'id' => 'rcmliG%s%s', 'class' => 'contactgroup'),
+ 'id' => 'rcmliG%s', 'class' => 'contactgroup'),
html::a(array('href' => '#',
'onclick' => "return ".JS_OBJECT_NAME.".command('listgroup',{'source':'%s','id':'%s'},this)"), '%s'));
$jsdata = array();
foreach ($groups as $group) {
- $args['out'] .= sprintf($line_templ, $args['source'], $group['ID'], $args['source'], $group['ID'], Q($group['name']));
+ $args['out'] .= sprintf($line_templ, asciiwords($args['source'] . $group['ID'], true, '_'), $args['source'], $group['ID'], Q($group['name']));
$args['jsdata']['G'.$args['source'].$group['ID']] = array(
'source' => $args['source'], 'id' => $group['ID'],
'name' => $group['name'], 'type' => 'group');