Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1464e864

Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt

  • ID 1464e864c1823bf48731916e9dc4c481a8d9bdba
  • Vorgänger 811f204f
  • Nachfolger 163e0005

CSV-Importe: Warnungen wegen nicht initialisierter Variable vermeiden

Unterschiede anzeigen:

SL/Controller/CsvImport/BankTransaction.pm
41 41
  $self->controller->track_progress(phase => 'building data', progress => 0);
42 42
  my $update_policy  = $self->controller->profile->get('update_policy') || 'skip';
43 43

  
44
  my $i;
44
  my $i = 0;
45 45
  my $num_data = scalar @{ $self->controller->data };
46 46
  foreach my $entry (@{ $self->controller->data }) {
47 47
    $self->controller->track_progress(progress => $i/$num_data * 100) if $i % 100 == 0;
SL/Controller/CsvImport/CustomerVendor.pm
68 68
  my %vcs_by_number = map { ( $_->$numbercolumn => $_ ) } @{ $self->existing_objects };
69 69
  my $methods       = $self->controller->headers->{methods};
70 70

  
71
  my $i;
71
  my $i = 0;
72 72
  my $num_data = scalar @{ $self->controller->data };
73 73
  foreach my $entry (@{ $self->controller->data }) {
74 74
    $self->controller->track_progress(progress => $i/$num_data * 100) if $i % 100 == 0;
SL/Controller/CsvImport/Inventory.pm
79 79

  
80 80
  $self->controller->track_progress(phase => 'building data', progress => 0);
81 81

  
82
  my $i;
82
  my $i = 0;
83 83
  my $num_data = scalar @{ $self->controller->data };
84 84
  foreach my $entry (@{ $self->controller->data }) {
85 85
    $self->controller->track_progress(progress => $i/$num_data * 100) if $i % 100 == 0;
SL/Controller/CsvImport/Project.pm
32 32

  
33 33
  $self->controller->track_progress(phase => 'building data', progress => 0);
34 34

  
35
  my $i;
35
  my $i = 0;
36 36
  my $num_data = scalar @{ $self->controller->data };
37 37
  foreach my $entry (@{ $self->controller->data }) {
38 38
    $self->controller->track_progress(progress => $i/$num_data * 100) if $i % 100 == 0;
SL/Controller/CsvImport/Shipto.pm
24 24

  
25 25
  $self->controller->track_progress(phase => 'building data', progress => 0);
26 26

  
27
  my $i;
27
  my $i = 0;
28 28
  my $num_data = scalar @{ $self->controller->data };
29 29
  foreach my $entry (@{ $self->controller->data }) {
30 30
    $self->controller->track_progress(progress => $i/$num_data * 100) if $i % 100 == 0;

Auch abrufbar als: Unified diff