projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95a7f0a
)
Fix wrong number of votes in survey
author
Alain Peyrat
<aljeux@free.fr>
Tue, 2 Mar 2010 12:10:19 +0000
(12:10 +0000)
committer
Alain Peyrat
<aljeux@free.fr>
Tue, 2 Mar 2010 12:10:19 +0000
(12:10 +0000)
gforge/common/survey/Survey.class.php
patch
|
blob
|
history
diff --git
a/gforge/common/survey/Survey.class.php
b/gforge/common/survey/Survey.class.php
index a1d6d323dd625e8497ad8611554d4a76595f750f..beb230f55ac229a7b8d9538dad5a38ac6e6fb17a 100644
(file)
--- a/
gforge/common/survey/Survey.class.php
+++ b/
gforge/common/survey/Survey.class.php
@@
-322,7
+322,7
@@
class Survey extends Error {
$group_id = $this->Group->GetID();
$survey_id = $this->getID();
- $res = db_query_params ('SELECT 1 FROM survey_responses
where survey_id=$1 AND group_id=$2
',
+ $res = db_query_params ('SELECT 1 FROM survey_responses
WHERE survey_id=$1 AND group_id=$2 GROUP BY user_id
',
array ($survey_id,
$group_id)) ;
$ret = db_numrows($res);