[Kolab-devel] [issue603] Address book unavailable in kolab2 beta1 web admin once >50 external contacts are added

Hamish kolab-issues at intevation.de
Fri Jan 7 18:02:50 CET 2005


New submission from Hamish <lists at subvs.co.uk>:

If there are more than 50 external contacts, the addressbook page of web admin
comes up blank. Apache reports cannot find file "addrlistgroup.tpl". Could not
find this file anywhere, so quick fix is to edit admin/addressbok/index.php:

$result = ldap_search($ldap->connection, $base_dn, $filter);
  if( $result ) {
        $count = ldap_count_entries($ldap->connection, $result);
        $title = "Manage Address Book ($count Addresses)";
        // if there are more than 2000 entries, split in 26 categories for every
letter,
        // or if more than 50, put in groups, or else just show all.
        if ($count > 2000) {
          // ... TODO
##### IT SEEMS THAT THIS FILE ALSO DOES NOT EXIST
          $template = 'addrlistalpha.tpl';
#####
        } else if( $count > 50 ) {
          // ... TODO
##### THIS FILE DOES NOT SEEM TO EXIST, CHANGE ABOVE LINE TO $count > 100
##### FOR QUICK FIX
          $template = 'addrlistgroup.tpl';
#####
        }  else {
          $template = 'addrlistall.tpl';
          ldap_sort($ldap->connection,$result,'sn');
          $entry = ldap_first_entry($ldap->connection, $result);
          while( $entry ) {
                $attrs = ldap_get_attributes($ldap->connection, $entry);
                $dn = ldap_get_dn($ldap->connection,$entry); 

While the contacts do not show in the web admin, they are available in LDAP and
users can use them as addressbook contacts.

----------
assignedto: steffen
messages: 3435
nosy: captainmish, steffen
priority: bug
status: unread
title: Address book unavailable in kolab2 beta1 web admin once >50 external contacts are added
topic: server, web admin
________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://intevation.de/roundup/kolab/issue603>
________________________________________________




More information about the devel mailing list