Changeset 5315 in subversion


Ignore:
Timestamp:
Oct 6, 2011 8:31:38 AM (20 months ago)
Author:
thomasb
Message:

Skip VLV if a group is selected; show advanced search form if activating a 'searchonly' address book

Location:
trunk/roundcubemail/program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_ldap.php

    r5295 r5315  
    935935 
    936936            // when using VLV, we get the total count by... 
    937             if (!$count && $function != 'ldap_read' && $this->prop['vlv']) { 
     937            if (!$count && $function != 'ldap_read' && $this->prop['vlv'] && !$this->group_id) { 
    938938                // ...either reading numSubOrdinates attribute 
    939939                if ($this->prop['numsub_filter'] && ($result_count = @$function($this->conn, $this->base_dn, $this->prop['numsub_filter'], array('numSubOrdinates'), 0, 0, 0))) { 
  • trunk/roundcubemail/program/steps/addressbook/list.inc

    r5258 r5315  
    7575    $result = $CONTACTS->list_records(array('name')); 
    7676     
    77     if (!$result->count && $result->searchonly) 
     77    if (!$result->count && $result->searchonly) { 
    7878        $OUTPUT->show_message('contactsearchonly', 'notice'); 
     79        $OUTPUT->command('command', 'advanced-search'); 
     80    } 
    7981} 
    8082 
Note: See TracChangeset for help on using the changeset viewer.