From 7377de01f498345614b767bf2b88efa82ad1a74f Mon Sep 17 00:00:00 2001 From: Yung Han Khoe Date: Tue, 15 May 2007 15:23:52 +0000 Subject: [PATCH] fix AOIHits and AOIRank not working --- docs/changelog/7.x.x.txt | 2 +- lib/WebGUI/Macro/AOIHits.pm | 6 +++--- lib/WebGUI/Macro/AOIRank.pm | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 1ad0882dd..683e014a6 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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) diff --git a/lib/WebGUI/Macro/AOIHits.pm b/lib/WebGUI/Macro/AOIHits.pm index 072b8e3bb..542e91851 100644 --- a/lib/WebGUI/Macro/AOIHits.pm +++ b/lib/WebGUI/Macro/AOIHits.pm @@ -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; } diff --git a/lib/WebGUI/Macro/AOIRank.pm b/lib/WebGUI/Macro/AOIRank.pm index 750731e82..1eb2e8c13 100644 --- a/lib/WebGUI/Macro/AOIRank.pm +++ b/lib/WebGUI/Macro/AOIRank.pm @@ -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]; }