Modules installed:
LDAP 7.x-2.x-dev (2012-Aug-29)
Views 7.x-3.5

1. Created LDAP Server connected to Active Directory with about 500 entries in users DN.
2. Created LDAP Query configured to return 11 LDAP attributes from users DN branch (objectClass,sAMAccountName,cn,displayName,title,mail,telephoneNumber,mobile,description,department). Only CN attribute has more than one value.
3. Created view with one sorted column (first) and total 6 columns (displayName,title,department,telephoneNumber,mobile,mail). All was OK.
4. After that I have added sorting option in second column. In views design pane preview still OK. But if anybody openes view via URL this view raises error:
Warning: array_multisort(): Array sizes are inconsistent in ldap_views_plugin_query_ldap->execute() (line 311 of C:\www\portal\sites\all\modules\ldap\ldap_views\plugins\ldap_views_plugin_query_ldap.inc).

Comments

johnbarclay’s picture

Title: LDAP view with two sorted columns raises error "Array sizes are inconsistent in ldap_views" » LDAP Views: view with two sorted columns raises error "Array sizes are inconsistent in ldap_views"
Version: 7.x-2.x-dev » 7.x-1.x-dev

I'm pushing this back to 7.x-1.x as the code base is the same in both, but more people are using 7.x-1.x so it may get more attention there. Any patches will apply to both.

johnbarclay’s picture