From a5de265327b7877bc32e2a5c5b0fd1d01ac3492f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 14 Feb 2017 17:55:25 +0100 Subject: [PATCH] CsvImport: Report-Begrenzung: "Alles" anzeigen als Voreinstellung. --- SL/Controller/CsvImport.pm | 4 ++-- templates/webpages/csv_import/form.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SL/Controller/CsvImport.pm b/SL/Controller/CsvImport.pm index 5bf0953ea..2a3e062bb 100644 --- a/SL/Controller/CsvImport.pm +++ b/SL/Controller/CsvImport.pm @@ -163,8 +163,8 @@ sub action_report { $::form->error(t8('No report with id #1', $report_id)); } - my $show_first_20 = ($self->{report}->profile->get('full_preview', 2) == 0); - my $show_info_err = ($self->{report}->profile->get('full_preview', 2) == 1); + my $show_info_err = ($self->{report}->profile->get('full_preview', 0) == 1); + my $show_first_20 = ($self->{report}->profile->get('full_preview', 0) == 2); my $num_rows = 0; if ($show_first_20) { diff --git a/templates/webpages/csv_import/form.html b/templates/webpages/csv_import/form.html index 75fae984c..1b45996ca 100644 --- a/templates/webpages/csv_import/form.html +++ b/templates/webpages/csv_import/form.html @@ -275,9 +275,9 @@ [%- LxERP.t8('Preview Mode') %]: - [% L.radio_button_tag('settings.full_preview', value=2, checked=SELF.profile.get('full_preview')==2, label=LxERP.t8('Full Preview')) %] + [% L.radio_button_tag('settings.full_preview', value=0, checked=!SELF.profile.get('full_preview'), label=LxERP.t8('Full Preview')) %] [% L.radio_button_tag('settings.full_preview', value=1, checked=SELF.profile.get('full_preview')==1, label=LxERP.t8('Only Warnings and Errors')) %] - [% L.radio_button_tag('settings.full_preview', value=0, checked=!SELF.profile.get('full_preview'), label=LxERP.t8('First 20 Lines')) %] + [% L.radio_button_tag('settings.full_preview', value=2, checked=SELF.profile.get('full_preview')==2, label=LxERP.t8('First 20 Lines')) %] -- 2.20.1