From 3748efc8abbe8ff62bfa263fbfc25c7f333aae96 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 21 Jul 2021 14:55:01 +0000 Subject: [PATCH] Bug 28731: (bug 17600 follow-up) Import necessary subroutines in reports svc endpoint TO test: 1 - Write a report 2 - Click the svc link in the saved reports list 3 - ISE 4 - Make report public 5 - Click the svc link in saved reports list 6 - ISE 7 - Apply patch 8 - Comfirm opac/public link works 9 - Make report not public 10 - Confirm the internal svc link works Signed-off-by: Jonathan Druart --- opac/svc/report | 2 +- svc/report | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opac/svc/report b/opac/svc/report index 1e585cf5068..5aad6fe3bf4 100755 --- a/opac/svc/report +++ b/opac/svc/report @@ -24,7 +24,7 @@ use Modern::Perl; use C4::Output qw(output_with_http_headers); -use C4::Reports::Guided; +use C4::Reports::Guided qw( execute_query ); use Koha::Reports; use JSON; use CGI qw ( -utf8 ); diff --git a/svc/report b/svc/report index 18b0f2bd4b8..cf9765fc262 100755 --- a/svc/report +++ b/svc/report @@ -20,8 +20,8 @@ use Modern::Perl; -use C4::Auth; -use C4::Reports::Guided; +use C4::Auth qw( get_template_and_user ); +use C4::Reports::Guided qw( execute_query ); use Koha::Reports; use JSON; use CGI qw ( -utf8 ); -- 2.20.1