[Svn] r4460 - trunk/roundcubemail/program/steps/addressbook

trac at roundcube.net trac at roundcube.net
Wed Jan 26 22:06:27 CET 2011


Author: thomasb
Date: 2011-01-26 15:06:27 -0600 (Wed, 26 Jan 2011)
New Revision: 4460

Modified:
   trunk/roundcubemail/program/steps/addressbook/func.inc
Log:
Fix group item identifiers

Modified: trunk/roundcubemail/program/steps/addressbook/func.inc
===================================================================
--- trunk/roundcubemail/program/steps/addressbook/func.inc	2011-01-26 11:53:18 UTC (rev 4459)
+++ trunk/roundcubemail/program/steps/addressbook/func.inc	2011-01-26 21:06:27 UTC (rev 4460)
@@ -156,13 +156,13 @@
 
     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');

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list