From b69284a109ad05913319294183fd662a92eaf366 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 8 Jan 2024 12:21:06 +0000 Subject: [PATCH] Bug 35581: (QA follow-up): Update changes coming from bug 35331 Test plan: prove t/db_dependent/Koha/Plugins/Ill_hooks.t --- ill/ill-requests.pl | 2 +- members/ill-requests.pl | 2 +- t/db_dependent/Koha/Plugins/Ill_hooks.t | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index c88d60081d3..738f473b06b 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -410,7 +410,7 @@ if ( $backends_available ) { } } - $template->param( table_actions => encode_json( Koha::Illrequest->get_staff_table_actions ) ); + $template->param( table_actions => encode_json( Koha::ILL::Request->get_staff_table_actions ) ); } elsif ( $op eq "save_comment" ) { die "Wrong CSRF token" unless Koha::Token->new->check_csrf({ session_id => scalar $cgi->cookie('CGISESSID'), diff --git a/members/ill-requests.pl b/members/ill-requests.pl index d4573fabf3b..8162abd6cbb 100755 --- a/members/ill-requests.pl +++ b/members/ill-requests.pl @@ -46,7 +46,7 @@ $template->param( prefilters => "borrowernumber=$borrowernumber", patron => $patron, illview => 1, - table_actions => encode_json( Koha::Illrequest->get_staff_table_actions ), + table_actions => encode_json( Koha::ILL::Request->get_staff_table_actions ), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/t/db_dependent/Koha/Plugins/Ill_hooks.t b/t/db_dependent/Koha/Plugins/Ill_hooks.t index 5abd6e6a567..eb1adcb2b98 100755 --- a/t/db_dependent/Koha/Plugins/Ill_hooks.t +++ b/t/db_dependent/Koha/Plugins/Ill_hooks.t @@ -47,7 +47,7 @@ subtest 'ill_table_actions hook' => sub { my $plugins = Koha::Plugins->new; $plugins->InstallPlugins; - my $table_actions = Koha::Illrequest->get_staff_table_actions; + my $table_actions = Koha::ILL::Request->get_staff_table_actions; is_deeply( $table_actions, -- 2.30.2