03-21-2011, 05:21 PM
Hey,
Issue: I am trying to change the default behavior of the file sorting that takes place when you click on the "name" header of the folder content table. It sorts in ascending order by default.
I followed the code trail and traced the sorting back to :
I changed the getDocuments() function from:
to:
Still, when I try to sort in descending order by clicking on "Name", there is no change (still sorts in ascending order).
I even renamed the inc.ClassFolder.php and I didn't get any errors.
Is the Core folder relevant at all? I need to customize bits of letoDMS.
LetoDMS Version : 3.0RC2
PHP version : 5.3.5
MYSQL Version : 5.1
Server : Ubuntu 10.10 server (64-bit)
Thanks.
Issue: I am trying to change the default behavior of the file sorting that takes place when you click on the "name" header of the folder content table. It sorts in ascending order by default.
I followed the code trail and traced the sorting back to :
Code:
Core/inc.ClassFolder.php
I changed the getDocuments() function from:
PHP Code:
if (!isset($this->_documents)) {
if ($orderby=="n") $queryStr = "SELECT * FROM tblDocuments WHERE folder = " . $this->_id . " ORDER BY name";
PHP Code:
if (!isset($this->_documents)) {
if ($orderby=="n") $queryStr = "SELECT * FROM tblDocuments WHERE folder = " . $this->_id . " ORDER BY name desc";
Still, when I try to sort in descending order by clicking on "Name", there is no change (still sorts in ascending order).
I even renamed the inc.ClassFolder.php and I didn't get any errors.
Is the Core folder relevant at all? I need to customize bits of letoDMS.
LetoDMS Version : 3.0RC2
PHP version : 5.3.5
MYSQL Version : 5.1
Server : Ubuntu 10.10 server (64-bit)
Thanks.