Bug 18931 - Follow up - Typo fix in SQL statement
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 24 Jul 2017 21:26:04 +0000 (23:26 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 26 Jul 2017 16:50:56 +0000 (13:50 -0300)
Fixes the table alias in the SQL statement for items and
adds items to the if clause for showing data problems.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

about.pl

index 486768d..1fd28e4 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -297,7 +297,7 @@ if (  C4::Context->preference('WebBasedSelfCheck')
         { Slice => {} }
     );
     my $items = $dbh->selectall_arrayref(
-        q|select i.itemnumber from items b join deleteditems di on i.itemnumber=di.itemnumber|,
+        q|select i.itemnumber from items i join deleteditems di on i.itemnumber=di.itemnumber|,
         { Slice => {} }
     );
     my $checkouts = $dbh->selectall_arrayref(
@@ -308,7 +308,7 @@ if (  C4::Context->preference('WebBasedSelfCheck')
         q|select r.reserve_id from reserves r join old_reserves o on r.reserve_id=o.reserve_id|,
         { Slice => {} }
     );
-    if ( @$patrons or @$biblios or @$checkouts or @$holds ) {
+    if ( @$patrons or @$biblios or @$items or @$checkouts or @$holds ) {
         $template->param(
             has_ai_issues => 1,
             ai_patrons    => $patrons,