From 76005a6dadacb0ea5fa5902c1c3124312f5b782d Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Thu, 18 Jul 2013 16:08:00 +0200 Subject: [PATCH] =?utf8?q?Keine=20"leere"=20W=C3=A4hrungsauswahl=20in=20Cu?= =?utf8?q?stomerVendor=20erlauben?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/CustomerVendor.pm | 1 + templates/webpages/customer_vendor/tabs/billing.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index cfe7accf8..cc2af359a 100644 --- a/SL/Controller/CustomerVendor.pm +++ b/SL/Controller/CustomerVendor.pm @@ -668,6 +668,7 @@ sub _create_customer_vendor { } else { $self->{cv} = SL::DB::Customer->new(); } + $self->{cv}->currency_id($::instance_conf->get_currency_id()); $self->{note} = SL::DB::Note->new(); diff --git a/templates/webpages/customer_vendor/tabs/billing.html b/templates/webpages/customer_vendor/tabs/billing.html index b7dfe9ea2..979ccbc53 100644 --- a/templates/webpages/customer_vendor/tabs/billing.html +++ b/templates/webpages/customer_vendor/tabs/billing.html @@ -286,7 +286,7 @@ [% 'Currency' | $T8 %] - [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id, with_empty = 1) %] + [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %] [% END %] -- 2.20.1