From 5401e8ea5904e9ec14e6cc5a1bc1df10664dd0e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Sun, 3 Mar 2019 15:58:32 +0100 Subject: [PATCH] =?utf8?q?unlink=5Fbank=5Ftransaction=20optionaler=20param?= =?utf8?q?eter=20f=C3=BCr=20testfall?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/BankTransaction.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index 2e10e4143..655aebcc9 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -725,7 +725,7 @@ sub save_single_bank_transaction { return grep { $_ } ($error, @warnings); } sub action_unlink_bank_transaction { - my ($self) = @_; + my ($self, %params) = @_; croak("No bank transaction ids") unless scalar @{ $::form->{ids}} > 0; @@ -789,7 +789,7 @@ sub action_unlink_bank_transaction { } flash('ok', t8('#1 bank transaction bookings undone.', $success_count)); - $self->action_list_all(); + $self->action_list_all() unless $params{testcase}; } # # filters -- 2.20.1