Opened 5 years ago
Closed 5 years ago
#1485162 closed Bugs (duplicate)
Disabled add-buttons in addressbook
| Reported by: | nilu | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.2-beta |
| Component: | PHP backend | Version: | git-master |
| 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 (2)
comment:1 Changed 5 years ago by nilu
comment:2 Changed 5 years ago by alec
- Milestone changed from later to 0.2-beta
- Resolution set to duplicate
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

sorry this is a duplicate of #1485161
(There was a server-error when i tried to upload an attachment)