6.0.0-beta1
8/7/25

[#1264] Sorting files by date in Chora
Summary Sorting files by date in Chora
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 2. Medium
Owners chuck (at) horde (dot) org
Requester olli.korhonen (at) fimx (dot) fi
Created 01/28/2005 (7496 days ago)
Due
Updated 01/28/2005 (7496 days ago)
Assigned 01/28/2005 (7496 days ago)
Resolved 01/28/2005 (7496 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/28/2005 03:40:28 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Thanks for the catch - fixed now.
01/28/2005 03:32:18 PM Chuck Hagenbuch Assigned to Chuck Hagenbuch
State ⇒ Assigned
 
01/28/2005 03:19:16 PM olli (dot) korhonen (at) fimx (dot) fi Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Sorting files by date in Chora
Queue ⇒ Horde Framework Packages
Reply to this comment
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;


Saved Queries