From e72ecdf83cabbb6f630ec33efd15e7615b69a676 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Thu, 18 Jul 2013 16:31:04 +0200 Subject: [PATCH] CustomerVendor: im Templatesystem vorhandenes instance_conf verwenden --- SL/Controller/CustomerVendor.pm | 2 -- templates/webpages/customer_vendor/tabs/billing.html | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index a8b9c4544..23c903687 100644 --- a/SL/Controller/CustomerVendor.pm +++ b/SL/Controller/CustomerVendor.pm @@ -682,8 +682,6 @@ sub _create_customer_vendor { sub _pre_render { my ($self) = @_; - $self->{template_args}->{instance_conf} = $::instance_conf; - my $dbh = $::form->get_standard_dbh(); my $query; diff --git a/templates/webpages/customer_vendor/tabs/billing.html b/templates/webpages/customer_vendor/tabs/billing.html index 531121177..ace2bd539 100644 --- a/templates/webpages/customer_vendor/tabs/billing.html +++ b/templates/webpages/customer_vendor/tabs/billing.html @@ -8,7 +8,7 @@ - [% IF ( instance_conf.get_vertreter ) %] + [% IF ( INSTANCE_CONF.get_vertreter ) %] [% IF SELF.is_vendor() %] @@ -292,7 +292,7 @@ - [% IF ( !instance_conf.get_vertreter ) %] + [% IF ( !INSTANCE_CONF.get_vertreter ) %] [% IF ( SELF.is_vendor() ) %] [% 'Type of Vendor' | $T8 %] @@ -349,7 +349,7 @@ - [% IF ( SELF.is_customer() && !instance_conf.get_vertreter ) %] + [% IF ( SELF.is_customer() && !INSTANCE_CONF.get_vertreter ) %] [% 'Salesman' | $T8 %] -- 2.20.1