Loading lib/Travel/Status/DE/DBWagenreihung.pm +2 −4 Original line number Diff line number Diff line Loading @@ -338,12 +338,10 @@ sub parse_wagons { for my $i ( 0 .. $#wagon_groups ) { my $group = $wagon_groups[$i]; my $tt = $self->wagongroup_subtype( @{$group} ); if ($tt) { for my $wagon ( @{$group} ) { $wagon->set_traintype( $i, $tt ); } } } $self->{wagongroups} = [@wagon_groups]; } Loading lib/Travel/Status/DE/DBWagenreihung/Wagon.pm +6 −1 Original line number Diff line number Diff line Loading @@ -204,6 +204,11 @@ sub set_traintype { my ( $self, $group_index, $tt ) = @_; $self->{group_index} = $group_index; if ( not $tt ) { return; } $self->{train_subtype} = $tt; if ( not $self->{number} or not exists( $type_attributes{$tt} ) ) { Loading Loading
lib/Travel/Status/DE/DBWagenreihung.pm +2 −4 Original line number Diff line number Diff line Loading @@ -338,12 +338,10 @@ sub parse_wagons { for my $i ( 0 .. $#wagon_groups ) { my $group = $wagon_groups[$i]; my $tt = $self->wagongroup_subtype( @{$group} ); if ($tt) { for my $wagon ( @{$group} ) { $wagon->set_traintype( $i, $tt ); } } } $self->{wagongroups} = [@wagon_groups]; } Loading
lib/Travel/Status/DE/DBWagenreihung/Wagon.pm +6 −1 Original line number Diff line number Diff line Loading @@ -204,6 +204,11 @@ sub set_traintype { my ( $self, $group_index, $tt ) = @_; $self->{group_index} = $group_index; if ( not $tt ) { return; } $self->{train_subtype} = $tt; if ( not $self->{number} or not exists( $type_attributes{$tt} ) ) { Loading