[Koha-patches] [PATCH] [SIGNED-OFF] bug 6102: use exact object search when retrieving log entries
Owen Leonard
oleonard at myacpl.org
Wed Apr 6 21:46:11 CEST 2011
From: Galen Charlton <gmcharlt at gmail.com>
Fixes bug where viewing the action_logs for biblio 123
also displayed entries for biblio 1234, 21234, etc.
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
Signed-off-by: Owen Leonard <oleonard at myacpl.org>
---
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.3
More information about the Koha-patches
mailing list