Sorting out issue (student profile - documents)
When a student is logged in, certain data (size and date) are not correctly sorted out ("documents" tool).
(All is correct with a teacher profile).
I can't find the issue's source in the code.
Could you help me please ? This is a persistent problem in Dokeos.
Thanks for your help.
smarti
- Vous devez vous identifier ou créer un compte pour écrire des commentaires

Sorting out issue (student profile - documents)
Thank you very much for your
Thank you very much for your answer. But it's not really my question :) I didn't explain very well maybe (excuse my bad english).
It's about the sort of the data. When a student wants to sort documents by date or size (whatever it is), the results are wrong (1 week / 1 day / 1 month / 1 year / 1 day... or 1 Mo / 457 ko / 3 Mo and so on...) : the sort is wrong... in disorder. If a teacher (a user with a teacher profile) sorts data, it works.
I just want students can sort out the data like the teacher profile...
Thank you very much for your help, it's a big problem for me, and this bug is in all versions of Dokeos (2.1.1 too).
Thanks,
Smarti
Fixed.
Hello again,
I finally fixed the bug. I don't know how it works exactly, but I changed these lines in "document.php" and it works (it's about columns' order) : (Dokeos 1.8.6)
If it can help someone...
Original code :
if ( count($row) == 8 ) {
$column_order[]=1;
$column_order[]=2;
$column_order[]=7;
$column_order[]=6;
$column_order[]=5;
} else if ( count($row) == 6 ) {
$column_order[]=1;
$column_order[]=2;
$column_order[]=7;
$column_order[]=4;
}
Replaced by :
if ( count($row) == 8 ) {
$column_order[0]=1;
$column_order[1]=2;
$column_order[2]=7;
$column_order[3]=6;
$column_order[4]=5;
} else if ( count($row) == 6 ) {
$column_order[0]=1;
$column_order[1]=5;
$column_order[2]=4;
$column_order[3]=4;
}
bye
smarti
Hi