Changeset fd89754 in github


Ignore:
Timestamp:
Jun 14, 2011 8:09:23 PM (2 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ca7dda4
Parents:
ecf295f
Message:

Allow to specify multiple sort columns as array (currently only used for VLV)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_ldap.php

    r6f3fa96 rfd89754  
    114114            $this->prop['required_fields'][$key] = $this->_attr_name(strtolower($val)); 
    115115 
    116         $this->sort_col = $p['sort']; 
     116        $this->sort_col = is_array($p['sort']) ? $p['sort'][0] : $p['sort']; 
    117117        $this->debug = $debug; 
    118118        $this->mail_domain = $mail_domain; 
     
    901901    private function _vlv_set_controls() 
    902902    { 
    903         $sort_ctrl = array('oid' => "1.2.840.113556.1.4.473",  'value' => $this->_sort_ber_encode(array($this->sort_col))); 
     903        $sort_ctrl = array('oid' => "1.2.840.113556.1.4.473",  'value' => $this->_sort_ber_encode((array)$this->prop['sort'])); 
    904904        $vlv_ctrl  = array('oid' => "2.16.840.1.113730.3.4.9", 'value' => $this->_vlv_ber_encode(($offset = ($this->list_page-1) * $this->page_size + 1), $this->page_size), 'iscritical' => true); 
    905905 
Note: See TracChangeset for help on using the changeset viewer.