summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-23 08:18:39 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-23 08:18:39 +0000
commit9184cc9eae5305f2d8266cf704b5dc970d80d5a9 (patch)
tree0108ca1638ee563a4ef548cbe961a1e709aabc72 /roundcubemail/program
parent06eefb0ca7265a5c99b0dcd3b8d6b86b3daae9a0 (diff)
- Fix adding contact group record after creating a group
git-svn-id: https://svn.roundcube.net/trunk@4252 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/addressbook/groups.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/addressbook/groups.inc b/roundcubemail/program/steps/addressbook/groups.inc
index f8bd0d7f2..6798588e1 100644
--- a/roundcubemail/program/steps/addressbook/groups.inc
+++ b/roundcubemail/program/steps/addressbook/groups.inc
@@ -79,7 +79,8 @@ else if ($RCMAIL->action == 'group-create') {
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 @@ else if ($RCMAIL->action == 'group-rename') {
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');