[Koha-patches] [PATCH] bug 6012: use exact object search when retrieving log entries
Galen Charlton
gmcharlt at gmail.com
Wed Apr 6 20:53:45 CEST 2011
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>
---
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
More information about the Koha-patches
mailing list