diff --git a/acqui/invoice.pl b/acqui/invoice.pl
index cac30ff265..3b5a647b8b 100755
--- a/acqui/invoice.pl
+++ b/acqui/invoice.pl
@@ -74,7 +74,7 @@ if ( C4::Context->preference('AcqEnableFiles') ) {
if ( $op && $op eq 'cud-close' ) {
output_and_exit( $input, $cookie, $template, 'insufficient_permission' )
unless $logged_in_patron->has_permission( { acquisition => 'edit_invoices' } );
- my @invoiceid = split( ',', $input->param('invoiceid') );
+ my @invoiceid = split( ',', scalar $input->param('invoiceid') );
foreach my $invoiceid ( @invoiceid ) {
CloseInvoice($invoiceid);
}
@@ -87,7 +87,7 @@ if ( $op && $op eq 'cud-close' ) {
elsif ( $op && $op eq 'cud-reopen' ) {
output_and_exit( $input, $cookie, $template, 'insufficient_permission' )
unless $logged_in_patron->has_permission( { acquisition => 'reopen_closed_invoices' } );
- my @invoiceid = split( ',', $input->param('invoiceid') );
+ my @invoiceid = split( ',', scalar $input->param('invoiceid') );
foreach my $invoiceid ( @invoiceid ) {
ReopenInvoice($invoiceid);
}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt
index 314bbff1b9..8672f4c948 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt
@@ -125,10 +125,10 @@
[% IF CAN_user_acquisition_merge_invoices %]
[% IF tab == 'closed' %]
Merge selected invoices
- Reopen selected invoices
+ Reopen selected invoices
[% ELSE %]
Merge selected invoices
- Close selected invoices
+ Close selected invoices
[% END # /IF tab == 'closed' %]
[% END # /IF CAN_user_acquisition_merge_invoices %]
[% END # /BLOCK invoices_table %]