From 07988e6dc69a90a06072d6f199f1e5f70985ea2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 24 Oct 2012 16:54:10 +0200 Subject: [PATCH] Fehler in Units und Bugrus in CsvImport. Wahrscheinlich Fehler beim Refactorn von L.options_for_select --- templates/webpages/csv_import/_form_parts.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/webpages/csv_import/_form_parts.html b/templates/webpages/csv_import/_form_parts.html index e499e8014..beb09a0d0 100644 --- a/templates/webpages/csv_import/_form_parts.html +++ b/templates/webpages/csv_import/_form_parts.html @@ -43,8 +43,7 @@ [%- LxERP.t8('Default buchungsgruppe') %]: - [% opts = SELF.all_buchungsgruppen, title_key = 'description', default = SELF.profile.get('default_buchungsgruppe') %] - [% L.select_tag('settings.default_buchungsgruppe', opts, style => 'width: 300px') %] + [% L.select_tag('settings.default_buchungsgruppe', SELF.all_buchungsgruppen, title_key = 'description', default = SELF.profile.get('default_buchungsgruppe'), style => 'width: 300px') %]
[% opts = [ [ 'never', LxERP.t8('Do not set default buchungsgruppe') ], [ 'all', LxERP.t8('Apply to all parts') ], [ 'missing', LxERP.t8('Apply to parts without buchungsgruppe') ] ] %] [% L.select_tag('settings.apply_buchungsgruppe', opts, default = SELF.profile.get('apply_buchungsgruppe'), style = 'width: 300px') %] @@ -54,7 +53,6 @@ [%- LxERP.t8('Default unit') %]: - [% opts = SELF.all_units, title_key = 'name', value_key = 'name', default = SELF.profile.get('default_unit') %] - [% L.select_tag('settings.default_unit', opts, style => 'width: 300px') %] + [% L.select_tag('settings.default_unit', SELF.all_units, title_key='name', value_key='name', default=SELF.profile.get('default_unit'), style = 'width: 300px') %] -- 2.20.1