[Tickets #1264] NEW: Sorting files by date in Chora

bugs at bugs.horde.org bugs at bugs.horde.org
Fri Jan 28 07:19:17 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1264
-----------------------------------------------------------------------
 Ticket     | 1264
 Created By | olli.korhonen at fimx.fi
 Summary    | Sorting files by date in Chora
 Queue      | Horde Framework Packages
 State      | Unconfirmed
 Priority   | 2. Medium
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


olli.korhonen at fimx.fi (2005-01-28 07:19) wrote:

File sorting in Chora is always ascending because of this little typo in
framework/VC/VC/cvs.php. Patch included.

--- horde-3.0.2/lib/Horde/VC/cvs.php    2005-01-07 02:23:51.000000000 +0200
+++ horde-3.0.2_patch/lib/Horde/VC/cvs.php      2005-01-28
16:51:18.042600057 +0200
@@ -510,7 +510,7 @@
         $bb = $b->queryLastLog();
         if ($aa->queryDate() == $bb->queryDate()) {
             return 0;
-        } elseif ($this->sortDir = VC_SORT_ASCENDING) {
+        } elseif ($this->sortDir == VC_SORT_ASCENDING) {
             return ($aa->queryDate() < $bb->queryDate()) ? 1 : -1;
         } else {
             return ($bb->queryDate() < $aa->queryDate()) ? 1 : -1;





More information about the bugs mailing list