summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/addressbook/groups.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-13 09:13:25 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-13 09:13:25 +0000
commit3df504b2950dbe3354e89cf309018de356c3fd21 (patch)
treecdd84a95713db89c3a292873faac03f08c12861f /roundcubemail/program/steps/addressbook/groups.inc
parentb0649d7909787dfdedc3b6a55995a59e076b0cef (diff)
- Extend contact groups support (#1486682)
git-svn-id: https://svn.roundcube.net/trunk@3614 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook/groups.inc')
-rw-r--r--roundcubemail/program/steps/addressbook/groups.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/addressbook/groups.inc b/roundcubemail/program/steps/addressbook/groups.inc
index eda258c6e..c98d4d840 100644
--- a/roundcubemail/program/steps/addressbook/groups.inc
+++ b/roundcubemail/program/steps/addressbook/groups.inc
@@ -19,7 +19,6 @@
*/
-
if ($CONTACTS->readonly || !$CONTACTS->groups) {
$OUTPUT->show_message('sourceisreadonly', 'warning');
$OUTPUT->send();
@@ -62,6 +61,7 @@ else if ($RCMAIL->action == 'group-create') {
}
if ($created && $OUTPUT->ajax_call) {
+ $created['source'] = $source;
$OUTPUT->command('insert_contact_group', $created);
}
else if (!$created) {
@@ -77,7 +77,7 @@ else if ($RCMAIL->action == 'group-rename') {
}
if ($newname && $OUTPUT->ajax_call)
- $OUTPUT->command('update_contact_group', $gid, $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');
}
@@ -90,7 +90,7 @@ else if ($RCMAIL->action == 'group-delete') {
}
if ($deleted)
- $OUTPUT->command('remove_group_item', $gid);
+ $OUTPUT->command('remove_group_item', array('source' => $source, 'id' => $gid));
else
$OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsaving', 'error');
}
@@ -98,4 +98,4 @@ else if ($RCMAIL->action == 'group-delete') {
// send response
$OUTPUT->send();
-?> \ No newline at end of file
+?>