summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/groups.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-06-14 13:45:26 +0000
committeralecpl <alec@alec.pl>2011-06-14 13:45:26 +0000
commitecf295f6ef2b83c5e51cc74adf833fd8e18b6cfb (patch)
treec84a97283f0074330f2a2a3c23c361697644a83f /program/steps/addressbook/groups.inc
parent6f3fa964c637913c8b5565facae60a4edbd61d38 (diff)
- Added searching in all addressbook sources (global-search)
- Added addressbook source selection in contacts import
Diffstat (limited to 'program/steps/addressbook/groups.inc')
-rw-r--r--program/steps/addressbook/groups.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/steps/addressbook/groups.inc b/program/steps/addressbook/groups.inc
index 2517873ce..208df24f5 100644
--- a/program/steps/addressbook/groups.inc
+++ b/program/steps/addressbook/groups.inc
@@ -19,13 +19,14 @@
*/
+$source = get_input_value('_source', RCUBE_INPUT_GPC);
+$CONTACTS = rcmail_contact_source($source, true);
+
if ($CONTACTS->readonly || !$CONTACTS->groups) {
$OUTPUT->show_message('sourceisreadonly', 'warning');
$OUTPUT->send();
}
-$source = get_input_value('_source', RCUBE_INPUT_GPC);
-
if ($RCMAIL->action == 'group-addmembers') {
if (($gid = get_input_value('_gid', RCUBE_INPUT_POST)) && ($ids = get_input_value('_cid', RCUBE_INPUT_POST))) {
$plugin = $RCMAIL->plugins->exec_hook('group_addmembers', array('group_id' => $gid, 'ids' => $ids, 'source' => $source));