[Bps-public-commit] App-Changeloggr branch, master, updated. 3d7cf06c65e2bc33a80929f724c42e20c390eb5b
sartak at bestpractical.com
sartak at bestpractical.com
Fri May 22 18:23:48 EDT 2009
The branch, master has been updated
via 3d7cf06c65e2bc33a80929f724c42e20c390eb5b (commit)
from 7d87856bac4ee4bd6127f926862575c97ad0e9a7 (commit)
Summary of changes:
lib/App/Changeloggr/Model/Change.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 3d7cf06c65e2bc33a80929f724c42e20c390eb5b
Author: Shawn M Moore <sartak at gmail.com>
Date: Fri May 22 18:23:17 2009 -0400
Order by count of votes.tag instead of main.text, since votes.tag will
rightly be 0 where main.text is 1
diff --git a/lib/App/Changeloggr/Model/Change.pm b/lib/App/Changeloggr/Model/Change.pm
index 1628b97..c6e905c 100644
--- a/lib/App/Changeloggr/Model/Change.pm
+++ b/lib/App/Changeloggr/Model/Change.pm
@@ -147,7 +147,7 @@ sub prioritized_tags {
column => 'text',
);
$tags->order_by(
- function => 'count(main.text)',
+ function => "count($votes.tag)",
order => 'DESC',
);
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list