fix AOIHits and AOIRank not working
This commit is contained in:
parent
e388e52f92
commit
7377de01f4
3 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue