From 50bf132482648979dfd7ce0c82f419185477df6f Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 17 Jul 2012 14:58:23 -0400 Subject: [PATCH] Fixed tag count bug. --- module/VuFind/src/VuFind/Db/Row/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Db/Row/User.php b/module/VuFind/src/VuFind/Db/Row/User.php index 02947de765c..11509bf1218 100644 --- a/module/VuFind/src/VuFind/Db/Row/User.php +++ b/module/VuFind/src/VuFind/Db/Row/User.php @@ -124,7 +124,7 @@ class User extends RowGateway ), 'tag', 'cnt' => new Expression( - 'COUNT(?)', array('rt.id'), + 'COUNT(DISTINCT(?))', array('rt.resource_id'), array(Expression::TYPE_IDENTIFIER) ) ) -- GitLab