Skip to content

Commit

Permalink
Fixing #486
Browse files Browse the repository at this point in the history
  • Loading branch information
plk committed Nov 7, 2024
1 parent 92afc8f commit c77ae67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Biber/DataModel.pm
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ sub new {
if ($c->{type} eq 'mandatory') {
# field
foreach my $f ($c->{field}->@*) {
push $self->{entrytypesbyname}{$es}{constraints}{mandatory}->@*, $f->{content};
if (not first {$f->{content} eq $_} $self->{entrytypesbyname}{$es}{constraints}{mandatory}->@*) {
push $self->{entrytypesbyname}{$es}{constraints}{mandatory}->@*, $f->{content};
}
}
# xor set of fields
# [ XOR, field1, field2, ... , fieldn ]
Expand Down

0 comments on commit c77ae67

Please sign in to comment.