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

trac at roundcube.net trac at roundcube.net
Tue Nov 23 09:18:40 CET 2010


Author: alec
Date: 2010-11-23 02:18:39 -0600 (Tue, 23 Nov 2010)
New Revision: 4252

Modified:
   trunk/roundcubemail/program/steps/addressbook/groups.inc
Log:
- Fix adding contact group record after creating a group


Modified: trunk/roundcubemail/program/steps/addressbook/groups.inc
===================================================================
--- trunk/roundcubemail/program/steps/addressbook/groups.inc	2010-11-22 20:37:28 UTC (rev 4251)
+++ trunk/roundcubemail/program/steps/addressbook/groups.inc	2010-11-23 08:18:39 UTC (rev 4252)
@@ -79,7 +79,8 @@
 
   if ($created && $OUTPUT->ajax_call) {
     $OUTPUT->show_message('groupcreated', 'confirmation');
-    $OUTPUT->command('insert_contact_group', array('source' => $created));
+    $OUTPUT->command('insert_contact_group', array(
+      'source' => $source, 'id' => $created['id'], 'name' => $created['name']));
   }
   else if (!$created) {
     $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsaving', 'error');
@@ -98,7 +99,8 @@
 
   if ($newname && $OUTPUT->ajax_call) {
     $OUTPUT->show_message('grouprenamed', 'confirmation');
-    $OUTPUT->command('update_contact_group', array('source' => $source, 'id' => $gid, 'name' => $newname));
+    $OUTPUT->command('update_contact_group', array(
+      'source' => $source, 'id' => $gid, 'name' => $newname));
   }
   else if (!$newname)
     $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsaving', 'error');

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



More information about the Svn mailing list