X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FClientConfig.pm;fp=SL%2FController%2FClientConfig.pm;h=e2cc74035c5a1d5af79ff614ca905bae04d6a051;hb=0b34e29fb04ad9ac9912f67b767f9f401700ca97;hp=a69779a60b4a712ce36eb86e00c9e82b77800a2d;hpb=46135cc6988f5ce2d8d1be1627651e5da28d64ae;p=kivitendo-erp.git diff --git a/SL/Controller/ClientConfig.pm b/SL/Controller/ClientConfig.pm index a69779a60..e2cc74035 100644 --- a/SL/Controller/ClientConfig.pm +++ b/SL/Controller/ClientConfig.pm @@ -16,7 +16,6 @@ use SL::Helper::Flash; use SL::Locale::String qw(t8); use SL::PriceSource::ALL; use SL::Template; -use SL::DBUtils; __PACKAGE__->run_before('check_auth'); @@ -29,7 +28,7 @@ sub action_edit { my ($self, %params) = @_; $::form->{use_templates} = $self->defaults->templates ? 'existing' : 'new'; - $::form->{use_case} = scalar(grep(/^Switzerland/, (selectrow_query($::form, $::form->get_standard_dbh, 'SELECT coa FROM defaults'))[0])); + $::form->{country_mode} = $self->defaults->country_mode; $self->edit_form; }