summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/groups.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-11-23 08:18:39 +0000
committeralecpl <alec@alec.pl>2010-11-23 08:18:39 +0000
commit1f052f0be2b6e4b2db89a70eca62cd6d21f56878 (patch)
tree6fcf53afa6eb0dd66bd0e41d6d7c9e2e2ca219fd /program/steps/addressbook/groups.inc
parent57388f9cce148fbbeaebb84b16bef4cbed322a89 (diff)
- Fix adding contact group record after creating a group
Diffstat (limited to 'program/steps/addressbook/groups.inc')
-rw-r--r--program/steps/addressbook/groups.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/program/steps/addressbook/groups.inc b/program/steps/addressbook/groups.inc
index f8bd0d7f2..6798588e1 100644
--- a/program/steps/addressbook/groups.inc
+++ b/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');