Summary | Selected user list of share advanced is unsorted |
Queue | Kronolith |
Queue Version | 4.0.3 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | gerard.breiner (at) ias (dot) u-psud (dot) fr |
Created | 03/08/2013 (4475 days ago) |
Due | |
Updated | 03/13/2013 (4470 days ago) |
Assigned | 03/13/2013 (4470 days ago) |
Resolved | 03/13/2013 (4470 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Not A Bug
you have a badly broken PHP installation.
listUsers($sort = false). Kronolith call it by listUsers(true), so
$sort should be "true" but $sort remains "false" . For testing that
true is not passed to the method, I modify temporarily in Ldap.php
$sort = true then I noticed my ldap user list is sorted. Therefore it
is a fact that true is not passed to the method even though I agree
with you it should be.
Best regards.
Gérard
Priority ⇒ 1. Low
State ⇒ Feedback
with the value ³true² that means we want a sorted list but the issue is that
the value ³true² is not transmit to the variable $sort of listUsers. This
function is defined in pear/php/Horde/Auth/Ldap.php.
called in the kronolith code if you use an LDAP authentication
backend, so true is passed directly to the method, and further passed
to _sort() further down.
I don't see how the user list could *not* be sorted if using LDAP.
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Selected user list of share advanced is unsorted
Due ⇒ 03/08/2013
Queue ⇒ Kronolith
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
template that is in charge of this is
kronolith/templates/chunks/permissions.inc
I find out that at the lines 68 and 192 the function listUsers is called
with the value ³true² that means we want a sorted list but the issue is that
the value ³true² is not transmit to the variable $sort of listUsers. This
function is defined in pear/php/Horde/Auth/Ldap.php.
In the waiting of an answer to this issue I modified permissions.inc as
follow :
-- <?php foreach ($auth->listUsers(true) as $user): ?>
++ <?php $userslist = $auth->listUsers(); sort($userslist); foreach
($userslist as $user): ?>
Many thanks.
Best regards
Gérard Breiner