Bug 22365: Removing warn when accessing Log Viewer
authorAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 19 Feb 2019 01:36:14 +0000 (01:36 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Sun, 12 May 2019 22:24:12 +0000 (22: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>
(cherry picked from commit 8adb2f8003e25f6fe8cc78506a823a618a837fa1)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 8bd263601499ae1aa13587b37c62dfa27b4c7def)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

tools/viewlog.pl

index 2f8bc30..6575217 100755 (executable)
@@ -95,7 +95,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,
 );