From: Jan Büren Date: Sun, 3 Mar 2019 14:58:32 +0000 (+0100) Subject: unlink_bank_transaction optionaler parameter für testfall X-Git-Tag: release-3.5.4~111 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5401e8ea5904e9ec14e6cc5a1bc1df10664dd0e9;p=kivitendo-erp.git unlink_bank_transaction optionaler parameter für testfall --- 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