(bug #4358) fix sql query in C4::Members::GetAllIssues
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Wed, 31 Mar 2010 13:57:20 +0000 (15:57 +0200)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 7 Apr 2010 13:58:04 +0000 (09:58 -0400)
This fix the use of oldissues instead of old_issues table.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Members.pm

index 6878d2f..4326af9 100644 (file)
@@ -1076,8 +1076,8 @@ sub GetAllIssues {
         # apparently specific to HLT.  Not sure if the ReadingHistory
         # syspref is still required, as old_issues by design
         # is no longer checked with each loan.
-        my $query2 = "SELECT * FROM oldissues
-                      LEFT JOIN items ON items.itemnumber=oldissues.itemnumber
+        my $query2 = "SELECT * FROM old_issues
+                      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=?