[Koha-patches] [PATCH] Bug 3824: Item modif doesn't select default value in combo list
Frédéric Demians
f.demians at tamil.fr
Wed Dec 2 08:32:23 CET 2009
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
More information about the Koha-patches
mailing list