From d50d0f3d0acb7b1584601de520db5a313d8ca70d Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 28 Dec 2011 10:55:24 +0000 Subject: [PATCH] * addressbook: distributionlists, allow to add any seen contact to an available (and editable) distributionlist --- addressbook/inc/class.addressbook_ui.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 688c159b50..93b473366f 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -469,7 +469,7 @@ class addressbook_ui extends addressbook_bo ), 'group' => $group, ); - if (($add_lists = $this->get_lists(EGW_ACL_EDIT))) // do we have distribution lists? + if (($add_lists = $this->get_lists(EGW_ACL_EDIT))) // do we have distribution lists?, and are we allowed to edit them { $actions['lists']['children'] += array( 'to_list' => array( @@ -477,7 +477,8 @@ class addressbook_ui extends addressbook_bo 'children' => $add_lists, 'prefix' => 'to_list_', 'icon' => 'foldertree_nolines_plus', - 'disableClass' => 'rowNoEdit', + 'enabled' => ($add_lists?true:false), // if there are editable lists, allow to add a contact to one of them, + //'disableClass' => 'rowNoEdit', // wether you are allowed to edit the contact or not, as you alter a list, not the contact ), 'remove_from_list' => array( 'caption' => 'Remove from distribution list',