From d582b83d62fea84292843a34dcee163929a4384e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 29 Dec 2011 14:04:46 +0100 Subject: [PATCH] Buchungsgruppen nur laden, wenn Artikel importiert werden sollen --- SL/Controller/CsvImport.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/Controller/CsvImport.pm b/SL/Controller/CsvImport.pm index 9cca6cd80..9549ae2a7 100644 --- a/SL/Controller/CsvImport.pm +++ b/SL/Controller/CsvImport.pm @@ -142,7 +142,9 @@ sub render_inputs { : $self->type eq 'parts' ? $::locale->text('CSV import: parts and services') : die; - $self->all_buchungsgruppen(SL::DB::Manager::Buchungsgruppe->get_all_sorted); + if ($self->{type} eq 'parts') { + $self->all_buchungsgruppen(SL::DB::Manager::Buchungsgruppe->get_all_sorted); + } $self->setup_help; -- 2.20.1