From 9047bd2ddfd902cc0c462dc6d9ce35cd1dfaace2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 18 May 2011 10:20:51 -0400 Subject: [PATCH] Fix for Bug 3397 - Deleting item record leaves a hole in patron's reading history Excluding entries in old_issues which have a NULL itemnumber Signed-off-by: Magnus Enger Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- C4/Members.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index 4eb9979898..aab3caa6bc 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -1123,7 +1123,7 @@ sub GetAllIssues { LEFT JOIN items on items.itemnumber=old_issues.itemnumber LEFT JOIN biblio ON items.biblionumber=biblio.biblionumber LEFT JOIN biblioitems ON items.biblioitemnumber=biblioitems.biblioitemnumber - WHERE borrowernumber=? + WHERE borrowernumber=? AND old_issues.itemnumber IS NOT NULL order by $order"; if ( $limit != 0 ) { $query .= " limit $limit";