From: Jan Büren Date: Thu, 12 Jul 2018 15:43:06 +0000 (+0200) Subject: Bullshit von meinem commit 81ce5300bddff980 rausgeworfen X-Git-Tag: release-3.5.4~362 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2d228125932b6461719788a8c939ab114ff0c657;p=kivitendo-erp.git Bullshit von meinem commit 81ce5300bddff980 rausgeworfen Nein, Jan. Eben nicht so implementieren, sondern klarer und hoffentlich wartungsärmer. --- diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index 60879a1e4..0420b8b36 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -293,7 +293,6 @@ sub action_create_invoice { TEMPLATES_GL => $use_vendor_filter && @{ $templates_ap } ? undef : $templates_gl, TEMPLATES_AP => $templates_ap, vendor_name => $use_vendor_filter && @{ $templates_ap } ? $vendor_of_transaction->name : undef, - BT_ID => $::form->{bt_id}, ); } @@ -881,7 +880,7 @@ sub load_ap_record_template_url { } sub load_gl_record_template_url { - my ($self, $template, $bt_id) = @_; + my ($self, $template) = @_; return $self->url_for( controller => 'gl.pl', diff --git a/templates/webpages/bank_transactions/_template_list.html b/templates/webpages/bank_transactions/_template_list.html index 5c88b4e2a..245f0629d 100644 --- a/templates/webpages/bank_transactions/_template_list.html +++ b/templates/webpages/bank_transactions/_template_list.html @@ -42,7 +42,7 @@ [% FOREACH template = TEMPLATES_GL %] - [% P.link_tag(SELF.load_gl_record_template_url(template, BT_ID), template.template_name) %] + [% P.link_tag(SELF.load_gl_record_template_url(template), template.template_name) %] [% HTML.escape(template.reference) %] [% HTML.escape(template.employee.name || template.employee.login) %] [% HTML.escape(template.itime_as_date) %]