diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm index 3647287f97..b4c8057d57 100644 --- a/Koha/Illrequest.pm +++ b/Koha/Illrequest.pm @@ -2083,10 +2083,7 @@ sub get_staff_table_actions { } ]; - my @plugin_responses = Koha::Plugins->call('ill_table_actions'); - for my $plugin_variables (@plugin_responses) { - push( @{$ill_table_actions}, $plugin_variables ); - } + Koha::Plugins->call( 'ill_table_actions', \$ill_table_actions ); return $ill_table_actions; } diff --git a/t/lib/plugins/Koha/Plugin/Test.pm b/t/lib/plugins/Koha/Plugin/Test.pm index 430c3a68b3..32f7dedb48 100644 --- a/t/lib/plugins/Koha/Plugin/Test.pm +++ b/t/lib/plugins/Koha/Plugin/Test.pm @@ -378,14 +378,17 @@ sub template_include_paths { } sub ill_table_actions { - my ( $self ) = @_; + my ( $self, $table_actions ) = @_; - return { - button_link_text => 'Test text', - append_column_data_to_link => 1, - button_class => 'test class', - button_link => 'test link' - }; + push( + @{$$table_actions}, + { + button_link_text => 'Test text', + append_column_data_to_link => 1, + button_class => 'test class', + button_link => 'test link' + } + ); } sub _private_sub {