summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-02-15 21:00:48 +0000
committerthomascube <thomas@roundcube.net>2011-02-15 21:00:48 +0000
commit360bd3ea740073b83817183581893681e13a8570 (patch)
treedcbb1d856ceb50d1003fbe811aea07df26cb6096 /program/steps
parentbfb7d6e6819c8453d3e7c5c6d4fb261af078b176 (diff)
Allow group identifiers to be changed upon renaming (used in LDAP)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/addressbook/groups.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/addressbook/groups.inc b/program/steps/addressbook/groups.inc
index b70bbf265..4c70bf114 100644
--- a/program/steps/addressbook/groups.inc
+++ b/program/steps/addressbook/groups.inc
@@ -91,7 +91,7 @@ else if ($RCMAIL->action == 'group-rename') {
$plugin = $RCMAIL->plugins->exec_hook('group_rename', array('group_id' => $gid, 'name' => $name, 'source' => $source));
if (!$plugin['abort'])
- $newname = $CONTACTS->rename_group($gid, $plugin['name']);
+ $newname = $CONTACTS->rename_group($gid, $plugin['name'], $newgid);
else
$newname = $plugin['result'];
}
@@ -99,7 +99,7 @@ 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));
+ 'source' => $source, 'id' => $gid, 'name' => $newname, 'newid' => $newgid));
}
else if (!$newname)
$OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsaving', 'error');