From f56eac7afdf391ff573d3d7062ee4e7575cb8ed4 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 6 Apr 2011 14:52:21 -0400 Subject: [PATCH] bug 6102: use exact object search when retrieving log entries Fixes bug where viewing the action_logs for biblio 123 also displayed entries for biblio 1234, 21234, etc. Signed-off-by: Galen Charlton --- C4/Log.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Log.pm b/C4/Log.pm index 141621a..a2b2264 100644 --- a/C4/Log.pm +++ b/C4/Log.pm @@ -231,8 +231,8 @@ sub GetLogs { push(@parameters,"%".$action."%"); } if($object) { - $query .= " AND object LIKE ? "; - push(@parameters,"%".$object."%"); + $query .= " AND object = ? "; + push(@parameters, $object); } if($info) { $query .= " AND info LIKE ? "; -- 1.7.2.3