Bug 22365: Removing warn when accessing Log Viewer
authorAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 19 Feb 2019 01:36:14 +0000 (01:36 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 19 Apr 2019 14:24:26 +0000 (14:24 +0000)
To test:
Go to Tools -> Log Viewer and confirm the warn no longer shows after
applying the patch.

Sponsored-by: Catalyst IT

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

tools/viewlog.pl

index 4e8a2c3..f8463c0 100755 (executable)
@@ -90,7 +90,7 @@ if ( $src eq 'circ' ) {
 $template->param(
     debug => $debug,
     C4::Search::enabled_staff_search_views,
-    subscriptionsnumber => CountSubscriptionFromBiblionumber($input->param('object')),
+    subscriptionsnumber => CountSubscriptionFromBiblionumber(scalar $input->param('object')),
     object => $object,
 );