From 2d228125932b6461719788a8c939ab114ff0c657 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 12 Jul 2018 17:43:06 +0200 Subject: [PATCH] Bullshit von meinem commit 81ce5300bddff980 rausgeworfen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Nein, Jan. Eben nicht so implementieren, sondern klarer und hoffentlich wartungsärmer. --- SL/Controller/BankTransaction.pm | 3 +-- templates/webpages/bank_transactions/_template_list.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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) %] -- 2.20.1