This patch should also be applied on 3.0.x branch --- cataloguing/additem.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index e25bb44..35fbb13 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -384,7 +384,7 @@ foreach my $tag (sort keys %{$tagslib}) { my ($x,$value); ($x,$value) = find_value($tag,$subfield,$itemrecord) if ($itemrecord); $value =~ s/"/"/g; - unless ($value) { + if ( !$value && !$value == 0) { $value = $tagslib->{$tag}->{$subfield}->{defaultvalue}; # get today date & replace YYYY, MM, DD if provided in the default value my ( $year, $month, $day ) = split ',', $today_iso; # FIXME: iso dates don't have commas! -- 1.6.4.3 _______________________________________________ Koha-patches mailing list Koha-patches@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-patches