From: Bernd Bleßmann Date: Tue, 14 Feb 2017 16:55:25 +0000 (+0100) Subject: CsvImport: Report-Begrenzung: "Alles" anzeigen als Voreinstellung. X-Git-Tag: release-3.5.6.1~191 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a5de265327b7877bc32e2a5c5b0fd1d01ac3492f;p=kivitendo-erp.git CsvImport: Report-Begrenzung: "Alles" anzeigen als Voreinstellung. --- 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')) %]