Ticket #1485162 (closed Bugs: duplicate)

Opened 4 months ago

Last modified 4 months ago

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

Changed 4 months ago by nilu

sorry this is a duplicate of #1485161

(There was a server-error when i tried to upload an attachment)

Changed 4 months ago by alec

  • status changed from new to closed
  • resolution set to duplicate
  • milestone changed from later to 0.2-beta
Note: See TracTickets for help on using tickets.