Skip to content

Commit

Permalink
bugfix for case where duplicated reading has no language set
Browse files Browse the repository at this point in the history
  • Loading branch information
tla committed Apr 19, 2015
1 parent 87ded85 commit 9611c64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions base/lib/Text/Tradition/Collation.pm
Expand Up @@ -744,8 +744,11 @@ sub duplicate_reading {
$args{$attr->name} = $which eq 'Array'
? [ $r->$acc ] : { $r->$acc };
}
} else {
$args{$attr->name} = $r->$acc if $acc;
} elsif( $acc ) {
my $attrval = $r->$acc;
if( defined $attrval ) {
$args{$attr->name} = $attrval;
}
}
}
# By definition the new reading will no longer be common.
Expand Down

0 comments on commit 9611c64

Please sign in to comment.