fix AOIHits and AOIRank not working

This commit is contained in:
Yung Han Khoe 2007-05-15 15:23:52 +00:00
parent e388e52f92
commit 7377de01f4
3 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
7.3.18
- fix: "Rejected" messages in CS mail
- fix: AOIHits and AOIRank not working (Yung Han Khoe / United Knowledge)
7.3.17
- fix: First event in the calendar not working right (Martin Kamerbeek / Oqapi)

View file

@ -40,9 +40,9 @@ sub process {
my $value = shift;
my $sql = "select count from passiveProfileAOI a, metaData_properties f
where a.fieldId=f.fieldId
and userId=".$session->db->$session->db->quote($session->user->userId)."
and fieldName=".$session->db->$session->db->quote($key)."
and value=".$session->db->$session->db->quote($value);
and userId=".$session->db->quote($session->user->userId)."
and fieldName=".$session->db->quote($key)."
and value=".$session->db->quote($value);
my ($count) = $session->db->buildArray($sql);
return $count;
}

View file

@ -41,8 +41,8 @@ sub process {
$rank--; # Rank is zero based
my $sql = "select value from passiveProfileAOI a, metaData_properties f
where a.fieldId=f.fieldId
and userId=".$session->db->$session->db->quote($session->user->userId)."
and fieldName=".$session->db->$session->db->quote($key)." order by a.count desc";
and userId=".$session->db->quote($session->user->userId)."
and fieldName=".$session->db->quote($key)." order by a.count desc";
my @values = $session->db->buildArray($sql);
return $values[$rank];
}