bugfix : when modifying a biblio, on a repeated field with many subfields, the test to show empty subfields in X>1 was wrong : the missing subfields of the 1st field were repeated.

Example :
606 has $a$x$z

1st is 606$a (so $x$z empty)
2nd is 606$a$x

The marc editor in the 2nd field showed before this fix :
606 $a a_value
   $x another_value
   $x
   $z
(the 2nd $x being useless
This commit is contained in:
tipaul 2004-12-23 08:43:43 +00:00
parent 51326d1011
commit 230e6759ba
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ sub build_tabs ($$$$) {
next if (length $subfield !=1);
next if ($tagslib->{$tag}->{$subfield}->{tab} ne $tabloop);
next if ($tag<10);
next if (defined($record->field($tag)->subfield($subfield)));
next if (defined($field->subfield($subfield)));
push(@subfields_data, &create_input($tag,$subfield,'',$i,$tabloop,$record,$authorised_values_sth));
$i++;
}