CsvImport: Report-Begrenzung: "Alles" anzeigen als Voreinstellung.
authorBernd Bleßmann <bb@it-entwicklung.de>
Tue, 14 Feb 2017 16:55:25 +0000 (17:55 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 15 May 2020 13:56:12 +0000 (15:56 +0200)
SL/Controller/CsvImport.pm
templates/webpages/csv_import/form.html

index 5bf0953..2a3e062 100644 (file)
@@ -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) {
index 75fae98..1b45996 100644 (file)
    <tr>
     <th align="right">[%- LxERP.t8('Preview Mode') %]:</th>
     <td colspan="10">
-      [% 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')) %]
     </td>
    </tr>