Bug 14598 [QA Followup] - Update localuse statistics also
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 19 Jan 2016 14:34:20 +0000 (14:34 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Oct 2016 11:29:58 +0000 (11:29 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
installer/data/mysql/updatedatabase.pl

index 9ad6866..43986b1 100755 (executable)
@@ -13351,7 +13351,7 @@ if ( CheckVersion($DBversion) ) {
      SELECT s.itemnumber, i.itype, b.itemtype FROM
       ( SELECT DISTINCT itemnumber
         FROM statistics
-        WHERE type="return" AND itemtype IS NULL ) s
+        WHERE ( type = "return" OR type = "localuse" ) AND itemtype IS NULL ) s
       LEFT JOIN
       ( SELECT itemnumber,biblionumber, itype
         FROM items ) i