Ticket #1485162 (closed Bugs: duplicate)
Disabled add-buttons in addressbook
| Reported by: | nilu | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.2-beta |
| Component: | PHP backend | Version: | svn-trunk |
| Severity: | normal | Keywords: | Revision: 1574 |
| Cc: |
Description
I cannot add and delete contacts in my addressbook because the add- and delete-buttons are disabled. But adding a contact by clicking "+" next to an e-mail-address in an email works.
Investigation:
I have
$rcmail_config['ldap_public'] = false;
in my config/main.inc.php.
In steps/addressbook/func.inc line 56 the foreach-statement sets the address-source to readonly because:
(array)$CONFIG['ldap_public']
is converted to an array with on element:
echo var_dump((array)$CONFIG['ldap_public']);
array(1) { [0]=> bool(false) }
Possible Fix:
Add an additional check (steps/addressbook/func.inc Line 56):
if($CONFIG['ldap_public'] != false){
foreach ((array)$CONFIG['ldap_public'] as $id => $prop)
Attached an "svn diff"
Change History
Note: See
TracTickets for help on using
tickets.
