summaryrefslogtreecommitdiff
path: root/program/steps/addressbook
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-04-19 08:35:08 +0200
committerAleksander Machniak <alec@alec.pl>2013-04-19 08:35:08 +0200
commit7652687692bffdc31a1b65ed4afce97addd2bbde (patch)
tree47a793d3373689d57acd190b868aaedea05b1c41 /program/steps/addressbook
parentca2c6316fb1bd6b092df9ca323152f1050ee2d56 (diff)
Fix DB error when creating a new contact and a group is selected (#1489051)
Diffstat (limited to 'program/steps/addressbook')
-rw-r--r--program/steps/addressbook/save.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc
index 8cab6e817..25bfbd48b 100644
--- a/program/steps/addressbook/save.inc
+++ b/program/steps/addressbook/save.inc
@@ -192,7 +192,7 @@ else {
if (($maxnum = $RCMAIL->config->get('max_group_members', 0)) && ($counts->count + 1 > $maxnum))
$OUTPUT->show_message('maxgroupmembersreached', 'warning', array('max' => $maxnum));
- $CONTACTS->add_to_group($gid, $plugin['ids']);
+ $CONTACTS->add_to_group($plugin['group_id'], $plugin['ids']);
}
}
else